Salesforce

LDAPGet (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

LDAPGet (Magic xpa 3.x)

Retrieves the user information stored in a Lightweight Directory Access Protocol (LDAP) operating system directory.

Syntax:

LDAPGet(search base, search level, search filter, attribute, delimiter, [LDAP connection handle])

Parameters:

search base – An Alpha variable that contains the search path in the LDAP.

search level – Specify the search level by selecting an option from the following list:

  • B – Base search

  • T – Sub-tree search

  • O – One-level search

search filter – An Alpha variable that contains a valid LDAP filter.

attribute – An Alpha variable that defines the information required.

delimiter – An Alpha string used to separate one result from another.

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:

An Alpha string containing the information requested.

Note:

When using the LDAPGet function, you also have to define the LDAP Address:Port environment setting even if you are not using LDAP as the System Logon method.

Examples:

LDAPGet('somebase', 'B', 'objectclass=person', 'mail', '$$$') returns

dn=somename$$$mail1@some.com$$$
mail2@some.com$$$dn=someothername$$$
mail3@some.com

LDAPGet('dc=magdomain, dc=com', 'T', 'cn=Thomas', 'mgr', '$$$') returns the name of Thomas' manager.

See also:

LDAP Authentication

Reference
Attachment 
Attachment