fix: make ldap auth work when no domain name is provided in config