moved $LDAP_defaults definition from queryLDAPServer() to authenticated_via_ldap()