Tâche #23078
Scénario #23050: Corrections à appliquer pour Eole-AD
prise en charge des caractères spéciaux dans le script
Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
Restant à faire (heures):
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:~#
Révisions associées
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
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
Historique
#1 Mis à jour par Gérald Schwartzmann il y a environ 6 ans
- Statut changé de Nouveau à En cours
#2 Mis à jour par Gérald Schwartzmann il y a environ 6 ans
- Assigné à mis à Gérald Schwartzmann
#3 Mis à jour par Gérald Schwartzmann il y a environ 6 ans
- Temps estimé mis à 0.00 h
- Restant à faire (heures) mis à 0.0
#4 Mis à jour par Gérald Schwartzmann il y a environ 6 ans
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 Mis à jour par Gérald Schwartzmann il y a environ 6 ans
Pour tester sur ScribeAD
- ssh addc
- samba-tool user setpassword Administrator
ctrl + d
instance
Mot de passe testé :
Eole&#/@56 Eole@&"90 Eole?@"'90$
#6 Mis à jour par Gérald Schwartzmann il y a environ 6 ans
- Statut changé de En cours à Résolu
#7 Mis à jour par Joël Cuissinat il y a environ 6 ans
- Statut changé de Résolu à Fermé
- % réalisé changé de 0 à 100
Testé avec Eole&!21$