Updated ldapAuthDriver to reduce calls to ldap_connect/_bind/_search

I hope this is done properly. I'm a github virgin.