ADGetUserDn (Opus Funktion)
Inhaltsverzeichnis
Beschreibung¶
Diese Funktion ermittelt den Distinguished Name anhand eines Benutzernamens. Searches Active Directory under RootPath and returns the distinguished name of the user with the given sAMAccountName.
Argumente¶
Name | Typ | Beschreibung |
|---|---|---|
RootPath | LDAP Pfad, ab welchem gesucht werden soll. | |
sAMAccountName | Benutzername (sAMAccountName) |
Rückgabewert string¶
the distinguished name of the user, or empty string if not found
Beispiel¶
Ls_Dn = ADGetUserDn("OU=SMT,DC=SMT,DC=CH",Ls_User); |
|---|