4D v16.3LDAP LOGIN |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16.3
LDAP LOGIN
LDAP LOGIN
The LDAP LOGIN command opens a read-only connection to the LDAP server specified in the url parameter with the login and password identifiers provided. If accepted by the server, this connection will be used for any LDAP searches executed subsequently in the current process until the LDAP LOGOUT command is executed (or until the process is closed). In url, pass the full URL of the LDAP server you want to connect to, including the scheme and port (389 by default). This parameter should be compliant with rfc2255. Note: If you pass an empty string in the url parameter, the command will try to connect to the default LDAP server available on the domain; (this feature is intended for testing purposes only, for performance reasons it should not be used in production). In login, pass the user account on the LDAP server, and in password, pass the user password. By default, the login can be one of the following login strings, depending on the LDAP Server configuration:
Note that accepted values for the login are related to the password transmission mode as defined by the digest parameter. For example, in a default MS Active Directory configuration:
The digest parameter allows you to modify the way the password is transmitted over the network. You can use one of the following constants, located in the "LDAP" theme:
By default, the password is transmitted in digest MD5. Pass LDAP password plain text if necessary, for example if you want to use different login type values with the LDAP server. In a production environment, it is recommended to use a TLS connection for the url. Note: Authentication with an empty password lets you enter the anonymous binding mode (if authorized by the LDAP server). However, in this mode, errors can be thrown if you try to perform any operation that is not allowed in this kind of bind. If the login parameters are valid, a connection to the LDAP server is opened in the 4D process. You can then search and retrieve information using LDAP commands. Do not forget to call the LDAP LOGOUT command when the connection to the LDAP server is no longer necessary. You want to log in to an LDAP server and do a search: ARRAY TEXT($_tabAttributes;0) This example tries to connect to an application: ON ERR CALL("ErrHdlr") //handle errors
See also
|
PROPERTIES
Product: 4D
HISTORY
Created: 4D v15 ARTICLE USAGE
4D Language Reference ( 4D v16) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||