ADGetUserAccountControl (Opus Funktion)
Inhaltsverzeichnis
Beschreibung¶
Gibt den aktuellen Wert zurück. Returns the raw userAccountControl attribute value for the specified AD user.
Argumente¶
Name | Typ | Beschreibung |
|---|---|---|
UserDistinguishedName | LDAP distinguished name of the user account |
Rückgabewert integer¶
Wert bestehend aus folgenden Bitwerten
UF_ACCOUNTDISABLE = 0x0002
UF_PASSWD_NOTREQD = 0x0020
UF_PASSWD_CANT_CHANGE = 0x0040
UF_NORMAL_ACCOUNT = 0x0200
UF_DONT_EXPIRE_PASSWD = 0x10000
UF_SMARTCARD_REQUIRED = 0x40000
UF_PASSWORD_EXPIRED = 0x800000
Beispiel¶
ADSetUserAccountControl(Ls_UserObjectPath, ADGetUserAccountControl(Ls_UserObjectPath) \| 0x800000); |
|---|