ldap_bind

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.

result = ldap_bind (ConnectionId, dn [,Password]);
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.
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, please see the following: