Project

General

Profile

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

Added by Gérald Schwartzmann over 1 year ago. Updated over 1 year ago.

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

100%

Estimated time:
0.00 h
Spent time:
Remaining (hours):
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]

Associated revisions

Revision 3a0d1f03 (diff)
Added by Gérald Schwartzmann over 1 year ago

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

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

Revision 846b07f0 (diff)
Added by Gérald Schwartzmann over 1 year ago

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

  • ajout d'une dépendance au paquet recode

Revision 5b5544c6 (diff)
Added by Gérald Schwartzmann over 1 year ago

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

  • ajout d'une dépendance au paquet recode

Revision ca5e4546 (diff)
Added by Gérald Schwartzmann over 1 year ago

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

History

#1 Updated by Gérald Schwartzmann over 1 year ago

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

#2 Updated by Gérald Schwartzmann over 1 year ago

  • Status changed from Nouveau to En cours

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

  • Assigned To set to Gérald Schwartzmann

#4 Updated by Scrum Master over 1 year ago

  • Status changed from En cours to Résolu

#5 Updated by Daniel Dehennin over 1 year ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) set to 0.0

#6 Updated by Scrum Master over 1 year ago

  • Estimated time set to 0.00 h

#7 Updated by Scrum Master over 1 year ago

  • % Done changed from 0 to 100

Also available in: Atom PDF