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 ou FALSE si une erreur survient.
kmenard at wpi dot edu ¶
11 years ago
