Warn user if there are no mappings (#5246)

pull/5360/merge
Adrián López 9 years ago committed by Torkel Ödegaard
parent aad76d9220
commit 65aa6df45c
  1. 1
      pkg/login/ldap.go

@ -164,6 +164,7 @@ func (a *ldapAuther) syncUserInfo(user *m.User, ldapUser *ldapUserInfo) error {
func (a *ldapAuther) syncOrgRoles(user *m.User, ldapUser *ldapUserInfo) error {
if len(a.server.LdapGroups) == 0 {
log.Warn("Ldap: no group mappings defined")
return nil
}

Loading…
Cancel
Save