Project

General

Profile

Tâche #23078

Scénario #23050: Corrections à appliquer pour Eole-AD

prise en charge des caractères spéciaux dans le script

Added by Gérald Schwartzmann over 3 years ago. Updated over 3 years ago.

Status:
Fermé
Priority:
Normal
Start date:
02/16/2018
Due date:
% Done:

100%

Estimated time:
0.00 h
Spent time:
Remaining (hours):
0.0

Description

root@scribe:~# /usr/share/eole/posttemplate/05-eolead instance

Intégration au domaine Active Directory
Mot de passe de l'administrateur Active Directory : 
kinit: Ressource temporairement non disponible while getting initial credentials
Mauvais mot de passe ou serveur Kerberos impossible à joindre
Unknown regexp modifier "/1" at -e line 1, at end of line
Unknown regexp modifier "/2" at -e line 1, at end of line
Unknown regexp modifier "/3" at -e line 1, at end of line
Unknown regexp modifier "/4" at -e line 1, at end of line
Unknown regexp modifier "/5" at -e line 1, at end of line
syntax error at -e line 1, near "s@\[ad_password\]@<password>Eole@12345!" 
Execution of -e aborted due to compilation errors.
Unknown regexp modifier "/1" at -e line 1, at end of line
Unknown regexp modifier "/2" at -e line 1, at end of line
Unknown regexp modifier "/3" at -e line 1, at end of line
Unknown regexp modifier "/4" at -e line 1, at end of line
Unknown regexp modifier "/5" at -e line 1, at end of line
syntax error at -e line 1, near "s@\[ad_password\]@Eole@12345!" 
Execution of -e aborted due to compilation errors.
root@scribe:~#

Associated revisions

Revision 54cb606f (diff)
Added by Gérald Schwartzmann over 3 years ago

Prise en charge des caractères spéciaux du mot de passe ref #23078

  • utilisation de sed et insertion d'une ligne plutôt que du remplacement
    de caractère un à un

Revision f6ee4fc3 (diff)
Added by Gérald Schwartzmann over 3 years ago

Prise en charge des caractères spéciaux du mot de passe ref #23078

  • utilisation de sed et insertion d'une ligne plutôt que du remplacement
    de caractère un à un

History

#1 Updated by Gérald Schwartzmann over 3 years ago

  • Status changed from Nouveau to En cours

#2 Updated by Gérald Schwartzmann over 3 years ago

  • Assigned To set to Gérald Schwartzmann

#3 Updated by Gérald Schwartzmann over 3 years ago

  • Estimated time set to 0.00 h
  • Remaining (hours) set to 0.0

#4 Updated by Gérald Schwartzmann over 3 years ago

Quelques notes :

echo [ad_password] > test && cat test && sed -i 's/\[ad_password\]/eoleeole/g' test && cat test
root@scribe:~# grep -n ad_password /usr/share/eole/creole/distrib/lsc.xml
29:      [ad_password]
root@scribe:~# grep -n ad_password /usr/share/eole/creole/distrib/smbldap_bind.conf
19:adpassword = "[ad_password]";
root@scribe:~#
root@scribe:~# sed -n 19p /etc/smbldap-tools/smbldap_bind.conf
adpassword = "[ad_password]";
root@scribe:~# sed -n 29p /etc/lsc/lsc.xml
      [ad_password]
root@scribe:~# 
cat /root/.eolead

Pour tester :

\cp /usr/share/eole/creole/distrib/smbldap_bind.conf /etc/smbldap-tools/smbldap_bind.conf && \cp /usr/share/eole/creole/distrib/lsc.xml /etc/lsc/lsc.xml && /usr/share/eole/posttemplate/05-eolead instance

#5 Updated by Gérald Schwartzmann over 3 years ago

Pour tester sur ScribeAD

  1. ssh addc
  2. samba-tool user setpassword Administrator
    ctrl + d

instance

Mot de passe testé :


Eole&#/@56
Eole@&"90
Eole?@"'90$

#6 Updated by Gérald Schwartzmann over 3 years ago

  • Status changed from En cours to Résolu

#7 Updated by Joël Cuissinat over 3 years ago

  • Status changed from Résolu to Fermé
  • % Done changed from 0 to 100

Testé avec Eole&!21$

Also available in: Atom PDF