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 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.