PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → windev v20 vs Active directory (AD)
windev v20 vs Active directory (AD)
Iniciado por vihupe, 21,ene. 2016 13:47 - No hay respuesta
Publicado el 21,enero 2016 - 13:47
Hey there


Can anyone help with AD (Active Directory), I had no problem to connect to
AD and validate username and password, so far so good. I can not and need is
to bring the connected user attributes.

Here I pass the code as I am using, maybe someone can help as should put the
DC parameters and CN, according to the following data:


LDAPReset ()
LDAPSession.Host = EDT_Servidor
LDAPSession.Port = 389
LDAPSession.Version = 3
LDAPSession.User = NoSpace (EDT_Usuario) + "@ cadena.com"
LDAPSession.Password = "BBHHJJ"
LDAPSession.Option = ldapDefaultOption

// Connection
IF LDAPConnect ("MySession") = True THEN
sListAttributes is string = LDAPListAttribute ("MySession" "LDAP:
//cadena,CN=vpereyra@cadena.com,DC=cadena.com") -> here the result brings
blank, no data



Info ("Connected")

ELSE
Info ("Not Connected")
END
LDAPDisconnect ("MySession")


From already thank you very much

victor