The BIND command is responsible for establishing a connection to the LDAP server.
A simple bind sends the user's DN and password. An anonymous bind may be established by not sending a password.
It is possible to establish a secure connection, using SSL, and this BIND command provides for this option.
Command | Keyword | Value | Developer notes |
|---|---|---|---|
BIND | HOST | host | Required. The host address of the LDAP server you are connecting to. |
PORT | port | Optional. The port to connect to on the host. By default, this value will be 389 for a simple connection, or 636 for a secured connection. | |
SECURE | *YES | Optional. Specify if you want to establish a secure connection to the server. | |
*NO | Default. | ||
DN | authentication name | Optional. The DN may be used without a password, establishing an anonymous connection. It is also possible not to pass this value at all, also establishing an anonymous connection. | |
PASSWORD | value | Conditional. This keyword must be passed, along with the DN keyword, if authentication is required. |
BIND HOST(<LDAP-server-name>) DN(cn=Administrator) PASSWORD(password)