implement ldap auth support