update LDAP functions hopefully to prevent random bind failures