My misunderstanding of OpenLDAP API
I used to think that ldap_unbind() is the opposite of ldap_bind(),however I was wrong. Pierangelo Masarati (ando at openldap) pointed out
that it was actually opposite of ldap_init(). So, do NOT expect init() -> bind() -> search() -> unbind() -> bind() would success, it’s
simply wrong thing. You do not need to unbind() before you do another bind().
Just make a note.
在线阅读本文并参与讨论 delphij's Chaos blog.delphij.net/posts/2006/03/my-misunderstan/