Salesforce

LDAPUserAdd (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

LDAPUserAdd (Magic xpa 4.x)

Adds a user to the operating system directory using the Lightweight Directory Access Protocol (LDAP).

Syntax:

LDAPUserAdd (user DN, first name, last name, password, [LDAP connection handle])

Parameters:

user DN – The user distinguished name in LDAP. If the Domain Component (DC) is not specified, it will be taken from the connection details.

first name – The first name of the user. In the system directory this value is stored in the givenName property.

last name – The last name of the user. In the system directory this value is stored in the sn property.

password – The user's password. In the system directory this value is stored in the userPassword property.

LDAP connection handle – Optional. If this parameter is 0 or missing, the function will act using the connection from the LOGON. If this parameter is positive, the function will act using the connection from this handle.

Returns:

Logical – True for success

Examples:

LDAPUserAdd (’CN=User1, OU=users’, ’F_name’, ’L_name’, ’mypass’)

Note:

  • The at sign (@) cannot be used in the user name.

  • After adding a user using this function, you might also need to define the userPrincipalName and displayName attributes. This can be done using the LDAPUserModify function.

See also:

LDAP Authentication

Creating an SSL Certificate to Work with the LDAP Functions that Require Passwords

Since version: 1.5 SP2

Reference
Attachment 
Attachment