Fix regression with settings and LDAP_AUTH_GROUP

Introduced in 8af59df, it was NOT the canonical way of checking
check both codepaths when using LDAP auth

Both for an existing as well as a non existing user