ldap_bind
Description
The ldap_bind() function binds an existing LDAP server connection using the specified DN and password If the DN is not specified, an anonymous bind is attempted.
Not supported in Endpoint Privilege Management for Linux (EPM-L).
Syntax
result = ldap_bind (ConnectionId, dn [,Password]);
Arguments
ConnectionId | Required. LDAP server connection that is generated by the ldap_open() function. |
dn | Required. User’s DN. May be an empty string. |
Password | Optional. String that contains the password for dn. |
Return Values
0 | Bind operation successful. |
1 | Bind operation failed. |
result = ldap_bind (ldapConnection, "");
In this example, an anonymous bind is performed using the LDAP server connection that is specified in ldapConnection.
For more information, see the following: