From 4c6ef05fbdca9c700c4c59bdf6576578170a527f Mon Sep 17 00:00:00 2001 From: gsw945 Date: Fri, 2 Sep 2022 11:08:59 +0800 Subject: [PATCH] =?UTF-8?q?ldap=E5=8C=85=E4=BD=BF=E7=94=A8v3=E7=89=88?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/ldap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/ldap.go b/utils/ldap.go index 2b98bebd..fcee3faf 100644 --- a/utils/ldap.go +++ b/utils/ldap.go @@ -75,7 +75,7 @@ func AddMember(account, password string) error { defer lc.Close() user := fmt.Sprintf("cn=%s,dc=minho,dc=com", account) - member := ldap.NewAddRequest(user) + member := ldap.NewAddRequest(user, []ldap.Control{}) member.Attribute("mail", []string{"longfei6671@163.com"})