Fixed support for LDAP + SSO