detect ldap provider