Method Protocols.LDAP.client()->bind()
- Method
bind
intbind()
intbind(stringdn,stringpassword)
intbind(stringdn,stringpassword,intversion)- Description
Authenticates connection to the direcory.
First form uses default value previously entered in create.
Second form uses value from parameters:
- Parameter
dn The distinguished name (DN) of an entry aginst which will be made authentication.
- Parameter
password Password used for authentication.
Third form allows specify the version of LDAP protocol used by connection to the LDAP server.
- Parameter
version The desired protocol version (current
2or3). Defaults to3if zero or left out.- Returns
Returns
1on success,0otherwise.- Note
Only simple authentication type is implemented. So be warned clear text passwords are sent to the directory server.
- Note
The API change: the returning code was changed in Pike 7.3+ to follow his logic better.