Ldap reduce connections

Before, there were three binds and two connections, now only two binds in one connection. 

Please review @FlorinPeter @bartv2 @DeepDiver1975 or others