<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.fr.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>3 May 2019 15:06:42 Z</lastBuildDate><pubDate>2 May 2019 23:22:06 Z</pubDate><description>Bonjour à tous,&#13;
&#13;
Je souhaite utiliser Active Directory pour la connexion à mon application.&#13;
Je n'ai pas de serveur LDAP j'essaye donc de me faire la main avec un serveur public décrit ici:&#13;
&#13;
http://www.forumsys.com/tutorials/integration-how-to/ldap/online-ldap-test-server&#13;
&#13;
J'utilise le code de l'exemple WD mais je n'arrive pas à avoir les informations utilisateur avec ce code (sDn reste "")&#13;
[code:wl]&#13;
LDAPSession.Hôte = "ldap.forumsys.com"&#13;
LDAPSession.Utilisateur = "cn=read-only-admin,dc=example,dc=com"&#13;
LDAPSession.MotDePasse = "password"&#13;
LDAPSession.Port = 389&#13;
LDAPSession.Version = 3&#13;
SI LDAPConnecte(gsSessionLDAP) ALORS&#13;
	// Recherche des informations de l'utilisateur.&#13;
	sDn est une chaîne &#13;
	sDn = LDAPRecherche(gsSessionLDAP, "ou=mathematicians,dc=example,dc=com", "sAMAccountName=euler@ldap.forumsys.com")&#13;
	Info("sDn:" + sDn)&#13;
SINON&#13;
	Info(ErreurInfo())&#13;
FIN&#13;
[/code]&#13;
 Pouvez-vous, après avoir éventuellement consulté www.forumsys.com (c'est rapide ;) ) me dire ce qui cloche ?&#13;
En résumé:&#13;
//////////////&#13;
LDAP Server Information (read-only access):&#13;
&#13;
Server: ldap.forumsys.com  &#13;
Port: 389&#13;
&#13;
Bind DN: cn=read-only-admin,dc=example,dc=com&#13;
Bind Password: password&#13;
&#13;
All user passwords are password.&#13;
&#13;
You may also bind to individual Users (uid) or the two Groups (ou) that include:&#13;
&#13;
ou=mathematicians,dc=example,dc=com&#13;
&#13;
    riemann&#13;
    gauss&#13;
    euler&#13;
    euclid&#13;
&#13;
ou=scientists,dc=example,dc=com&#13;
&#13;
    einstein&#13;
    newton&#13;
    galieleo&#13;
    tesla&#13;
//////////////////&#13;
Merci de votre attention</description><ttl>30</ttl><generator>WEBDEV</generator><language>fr_FR</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/229862-ldaprecherche/read.awp</link><title>LDAPRecherche</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>Jissé</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/229862-ldaprecherche-229876/read.awp</comments><pubDate>3 May 2019 15:06:42 Z</pubDate><description>Non je n'ai pas d'erreur ni de rond rouge, sauf si je le souhaite en mettant dc=toto au lieu de dc=examples ...</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/229862-ldaprecherche-229876/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/229862-ldaprecherche-229876/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/229862-ldaprecherche/read.awp">LDAPRecherche</source><title>Re: LDAPRecherche</title></item><item><author>Snelhard</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/229862-ldaprecherche-229872/read.awp</comments><pubDate>3 May 2019 13:37:23 Z</pubDate><description>Lorsque vous exécutez votre application avec le code que vous avez, allez à la ligne "sDn =LDAPRecherche..." y'aura un rond roug…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/229862-ldaprecherche-229872/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/229862-ldaprecherche-229872/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/229862-ldaprecherche/read.awp">LDAPRecherche</source><title>Re: LDAPRecherche</title></item><item><author>Jissé</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/229862-ldaprecherche-229871/read.awp</comments><pubDate>3 May 2019 13:17:58 Z</pubDate><description>Merci pour votre réponse,&#13;
Je n'ai pas d'erreur, juste pas de résultat sDn=""&#13;
(idem avec votre suggestion)&#13;
&#13;
Y-a-t-il d'autres…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/229862-ldaprecherche-229871/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/229862-ldaprecherche-229871/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/229862-ldaprecherche/read.awp">LDAPRecherche</source><title>Re: LDAPRecherche</title></item><item><author>Snelhard</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/229862-ldaprecherche-229869/read.awp</comments><pubDate>3 May 2019 12:18:07 Z</pubDate><description>Essayez : &#13;
[code:wl]&#13;
sDn = LDAPRecherche(gsSessionLDAP, "ou=mathematicians,dc=example,dc=com", "sAMAccountName=euler")&#13;
[/code…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/229862-ldaprecherche-229869/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/229862-ldaprecherche-229869/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/229862-ldaprecherche/read.awp">LDAPRecherche</source><title>Re: LDAPRecherche</title></item><item><author>sarrazin4199</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/229862-ldaprecherche-229868/read.awp</comments><pubDate>3 May 2019 11:44:36 Z</pubDate><description>Bonjour,&#13;
&#13;
Quelle erreur avez-vous ?</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/229862-ldaprecherche-229868/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/229862-ldaprecherche-229868/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/229862-ldaprecherche/read.awp">LDAPRecherche</source><title>Re: LDAPRecherche</title></item></channel></rss>
