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.
ldap_unbind
(PHP 4, PHP 5)
ldap_unbind — Déconnecte d'un serveur LDAP
Description
bool ldap_unbind
( resource $link_identifier
)
Déconnecte d'un serveur LDAP.
Liste de paramètres
- link_identifier
-
Un identifiant de lien LDAP, retourné par la fonction ldap_connect().
Valeurs de retour
Cette fonction retourne TRUE en cas de succès, FALSE en cas d'échec.
ldap_unbind
kmenard at wpi dot edu
29-Nov-2001 08:47
29-Nov-2001 08:47
