PHP 7.0.6 Released

ldap_unbind

(PHP 4, PHP 5, PHP 7)

ldap_unbindUnbind from LDAP directory

Description

bool ldap_unbind ( resource $link_identifier )

Unbinds from the LDAP directory.

Parameters

link_identifier

An LDAP link identifier, returned by ldap_connect().

Return Values

Returns TRUE on success or FALSE on failure.

See Also

User Contributed Notes

kmenard at wpi dot edu
14 years ago
ldap_unbind kills the link descriptor.  So, if you want to rebind as another user, just bind again; don't unbind.  Otherwise, you'll have to open up a new connection.
To Top