Add user-connection and proper connection teardowns
If LDAP_SERVICE_BIND_DN is empty, use the current users credentials for all LDAP actions.
The user_password is stored in the cookie for that reason.
Also, ensure teardown of all opened LDAP connection afterwards
Edited by sistason