瀏覽代碼

Warn user if there are no mappings (#5246)

Adrián López 9 年之前
父節點
當前提交
65aa6df45c
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      pkg/login/ldap.go

+ 1 - 0
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
 	}