ADAddObjectProperty (Opus Funktion)

ADAddObjectProperty (Opus Funktion)

Beschreibung

Beim angegeben Objekt angegebene Eigenschaft/Wert hinzufügen. Doppelte Einträge werden nicht erstellt (Gross-/Kleinschreibung wird nicht berücksichtigt)
Adds a value to a multi-valued LDAP attribute on an Active Directory object.

Argumente

Name

Typ

Beschreibung

Name

Typ

Beschreibung

DistinguishedName

string

LDAP distinguished name of the object

PropertyName

string

name of the LDAP attribute

PropertyValue

string

value to add to the multi-valued attribute

Rückgabewert void

nichts

Beispiel

ADAddObjectProperty(Ls_UserObjectPath, "pwdLastSet", "0");

// Muss das Passwort beim nächsten Login ändern

 

ADAddObjectProperty(Ls_UserObjectPath, "givenName", Ls_FirstName);

ADAddObjectProperty(Ls_UserObjectPath, "pwdLastSet", "0"); // Must Change PWD at next Logon

ADAddObjectProperty(Ls_UserObjectPath, "pwdLastSet", "0");

// Muss das Passwort beim nächsten Login ändern

 

ADAddObjectProperty(Ls_UserObjectPath, "givenName", Ls_FirstName);

ADAddObjectProperty(Ls_UserObjectPath, "pwdLastSet", "0"); // Must Change PWD at next Logon

Siehe auch

---