Projet

Général

Profil

Tâche #22978

Scénario #22875: Seth/Scribe : Terminer les tests squash Eole-AD

EoleAd doit accepter les caractères spéciaux dans le mot de passe

Ajouté par Gérald Schwartzmann il y a environ 6 ans. Mis à jour il y a environ 6 ans.

Statut:
Fermé
Priorité:
Normal
Début:
02/02/2018
Echéance:
% réalisé:

100%

Temps estimé:
0.00 h
Temps passé:
Restant à faire (heures):
0.0

Description

Le fichier /etc/lsc/lsc.xml ne supporte pas les mots de passe avec des caractères spéciaux.

<ldapConnection>
       <name>ldap-dst-conn</name>
      <url>ldaps://seth.dompedago.etb1.lan:636/DC=dompedago,DC=etb1,DC=lan</url>
      <username>CN=Administrator,CN=Users,DC=dompedago,DC=etb1,DC=lan</username>
      <password>testmdp&amp;12345</password>

Erreur

root@scribe:~# lsc -f /etc/lsc -s all -t1
févr. 02 12:24:13 - ERROR - Unable to load configuration (org.lsc.exception.LscConfigurationException: Configuration exception: null)
org.lsc.exception.LscConfigurationException: Configuration exception: null
    at org.lsc.configuration.JaxbXmlConfigurationHelper.getConfiguration(JaxbXmlConfigurationHelper.java:162) ~[lsc-core-2.1.4.jar:na]
    at org.lsc.Configuration.setUp(Configuration.java:482) [lsc-core-2.1.4.jar:na]
    at org.lsc.Configuration.setUp(Configuration.java:456) [lsc-core-2.1.4.jar:na]
    at org.lsc.Launcher.run(Launcher.java:205) [lsc-core-2.1.4.jar:na]
    at org.lsc.Launcher.launch(Launcher.java:158) [lsc-core-2.1.4.jar:na]
    at org.lsc.Launcher.main(Launcher.java:141) [lsc-core-2.1.4.jar:na]
Caused by: javax.xml.bind.UnmarshalException: null
    at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(AbstractUnmarshallerImpl.java:335) ~[na:1.8.0_151]
    at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:563) ~[na:1.8.0_151]
    at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:249) ~[na:1.8.0_151]
    at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:214) ~[na:1.8.0_151]
    at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:157) ~[na:1.8.0_151]
    at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:162) ~[na:1.8.0_151]
    at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:171) ~[na:1.8.0_151]
    at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:189) ~[na:1.8.0_151]
    at org.lsc.configuration.JaxbXmlConfigurationHelper.getConfiguration(JaxbXmlConfigurationHelper.java:160) ~[lsc-core-2.1.4.jar:na]
    ... 5 common frames omitted
Caused by: org.xml.sax.SAXParseException: Le nom de l'identité doit immédiatement suivre le caractère "&" dans la référence d'entité.
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203) ~[na:1.8.0_151]
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177) ~[na:1.8.0_151]
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:400) ~[na:1.8.0_151]
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327) ~[na:1.8.0_151]
    at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1472) ~[na:1.8.0_151]
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEntityReference(XMLDocumentFragmentScannerImpl.java:1846) ~[na:1.8.0_151]

Révisions associées

Révision 3a0d1f03 (diff)
Ajouté par Gérald Schwartzmann il y a environ 6 ans

Le mot de passe est passé en entité HTML ref: #22978

  • utilisation de recode pour transformer le mot de passe en entité HTML

Révision 846b07f0 (diff)
Ajouté par Gérald Schwartzmann il y a environ 6 ans

Le mot de passe est passé en entité HTML ref: #22978

  • ajout d'une dépendance au paquet recode

Révision 5b5544c6 (diff)
Ajouté par Gérald Schwartzmann il y a environ 6 ans

Le mot de passe est passé en entité HTML ref: #22978

  • ajout d'une dépendance au paquet recode

Révision ca5e4546 (diff)
Ajouté par Gérald Schwartzmann il y a environ 6 ans

Le mot de passe est passé en entité HTML ref: #22978

  • le changement de mot de passe dans les fichiers doit être fait à chaque reconfigure

Historique

#1 Mis à jour par Gérald Schwartzmann il y a environ 6 ans

apt install recode
echo '&' |recode ascii..html

#2 Mis à jour par Gérald Schwartzmann il y a environ 6 ans

  • Statut changé de Nouveau à En cours

#3 Mis à jour par Gérald Schwartzmann il y a environ 6 ans

  • Assigné à mis à Gérald Schwartzmann

#4 Mis à jour par Scrum Master il y a environ 6 ans

  • Statut changé de En cours à Résolu

#5 Mis à jour par Daniel Dehennin il y a environ 6 ans

  • Statut changé de Résolu à Fermé
  • Restant à faire (heures) mis à 0.0

#6 Mis à jour par Scrum Master il y a environ 6 ans

  • Temps estimé mis à 0.00 h

#7 Mis à jour par Scrum Master il y a environ 6 ans

  • % réalisé changé de 0 à 100

Formats disponibles : Atom PDF