Correct a bug on authentication with LDAP & change check for authorized groups