4D v16.3

Overview of LDAP commands

Home

 
4D v16.3
Overview of LDAP commands

Overview of LDAP commands  


 

 

The commands of the "LDAP" theme allow your 4D application to connect to a company directory server such as MS Active Directory using the LDAP protocol. You can access the server data and query it.

Note: LDAP or Lightweight Directory Access Protocol is an open standard for accessing and maintaining distributed information services. For more information, please refer to the Wikipedia page on LDAP or the OpenLDAP Software main page.

LDAP commands allow you to:

  • use the Windows session login and password to grant access to your 4D application (if using MS Active directory) so that the end user only needs to remember a single password,
  • query the corporate directory to retrieve user information such as full name, email, phone number, office building, groups the person belongs to, etc.

In 4D, an LDAP connection is opened using LDAP LOGIN. It is then bound to the current 4D process and must be closed using LDAP LOGOUT, or when the process terminates its execution.

Here is a list of the main acronyms used in the LDAP environment:

AcronymDefinition
LDAPLightweight Directory Access Protocol
ADActive Directory. AD is a directory services database implemented by Microsoft, and LDAP is one of the protocols you can use to talk to it.
CNCommon Name, for example "John Doe"
DNDistinguished Name, for example "cn=John Doe,ou=users,dc=example,dc=com"
SAM-Account-NameSecurity Account Manager, logon name for AD, for example "jdoe"
OUOrganizational unit, groups of the server tree
DCDomain components, root and first branches of the server tree
uidUser identifier

 
PROPERTIES 

Product: 4D
Theme: LDAP

 
HISTORY 

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)