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 — Unbind von einem LDAP Verzeichnis
Beschreibung
bool ldap_unbind
( resource
$Verbindungs-Kennung
)
Gibt bei Erfolg TRUE zurück. Im Fehlerfall wird FALSE zurückgegeben.
Die ldap_unbind() Funktion führt ein unbind auf ein LDAP Verzeichnis aus.
kmenard at wpi dot edu ¶
11 years ago
