PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2025 → connection Active Directory
connection Active Directory
Iniciado por Mus, 21,ago. 2019 16:46 - 1 respuesta
Miembro registrado
48 mensajes
Publicado el 21,agosto 2019 - 16:46
Bonjour
je travail sur une application qui demande l'autentification du compte active directory j'utilise ce code la mais il n'afiche pas la page demander apres confirmation du conpte qui peut m'aider dans ce probleme

// Initialisation
LDAPRAZ()
LDAPSession.Hôte = "192.168.1.50"
LDAPSession.Port = 389
LDAPSession.Version = 3
LDAPSession.Utilisateur = sai_user
LDAPSession.MotDePasse =Sai_motdepasse

// Connexion
SI LDAPConnecte("MaSession") = Vrai ALORS
PageAffiche(PAGE_principale)
SINON
Erreur(ErreurInfo())
FIN
Miembro registrado
48 mensajes
Publicado el 22,agosto 2019 - 12:04
la solutions pour que sa marche il sufie d'ajouter le domaine dans le user:
// Initialisation
LDAPRAZ()
LDAPSession.Hôte = "192.168.1.50"
LDAPSession.Port = 389
LDAPSession.Version = 3
LDAPSession.Utilisateur = "Domaine\"+sai_user
LDAPSession.MotDePasse =Sai_motdepasse

// Connexion
SI LDAPConnecte("MaSession") = Vrai ALORS
PageAffiche(PAGE_principale)
SINON
Erreur(ErreurInfo())
FIN