Salesforce

LDAPConnect (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

LDAPConnect (Magic xpa 4.x)

Creates another session with LDAP, so other LDAP functionalities can be done in this connection.

Syntax:

LDAPConnect (address:port, connection string, domain context, user name, password)

Parameters:

address:port – LDAP directory address and port number. An ssl:// prefix can be used in this parameter. If it is used, an SSL session will be established with the server. In addition, port 636 will also initiate an SSL session.

connection string – The user's distinguished name (DN), which is a unique entry identifier in the LDAP server database.

domain context – The search base that will be used to locate the groups where the LDAP user is a member of. This parameter is required.

user name – Parameter specifying the user name.

password – Parameter specifying the password.

Note: The address:port, connection string, domain context properties are similar to the ones defined in the Environment settings.

Returns:

The LDAP connection handle (numeric). This handle is referred to in other LDAP functions when using this connection.

In case of an error, a negative value will be returned.

Example:

LDAPConnect ('127.0.0.1:38', 'OU=users', 'dc=mycompany,dc=com', 'User1','mypass')

Note:

A domain context name must always be defined.

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