Zum Inhalt

ADCreateUserAccount (Opus Funktion)

Beschreibung

Eröffnet einen AD-Benutzeraccount, mit angegebenem Benutzernamen und Passwort. Creates a new Active Directory user account and returns its distinguished name.

Argumente

Name

Typ

Beschreibung

LdapPath

string

LDAP path of the container (OU) in which to create the account

UserName

string

display name of the user

AccountName

string

SAM account name (login name) for the new user

Password

string

sealed

initial password for the account

Rückgabewert string

GUID des erstellten Objektes the distinguished name of the newly created user account

Beispiel

Ls_UserPath = "OU=Students,OU=Users,OU=STF,DC=STF,DC=CH"; Ls_FullNamePlus = "Testkonto Fullname Plus"; Ls_UserName = "testkontofull"; Ls_Password = "!{Mj!IK+;3Uoz??W!Cd";

Ls_Result = ADCreateUserAccount(Ls_UserPath,Ls_FullNamePlus,Ls_UserName,Ls_Password);

Dieses Beispiel befüllt die AD-Attribute wie folgt:

  • cn: Testkonto Fullname Plus
  • distinguishedName: CN=Testkonto Fullname Plus,OU=Students,OU=Users,OU=STF,DC=STF,DC=CH
  • Name: Testkonto Fullname Plus
  • sAMAccountName: testkontofull

Siehe auch