External LDAP authentication depending on user attributes?