parent root
PHP: ldap_unbind - Manual
PHP 7.2.23 Release Announcement

ldap_unbind

(PHP 4, PHP 5, PHP 7)

ldap_unbindUnbind from LDAP directory

Description

ldap_unbind ( resource $link_identifier ) : bool

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

add a noteadd a note

User Contributed Notes 1 note

up
21
kmenard at wpi dot edu
17 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
parent root