1
0
gsw945 3 жил өмнө
parent
commit
4c6ef05fbd
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      utils/ldap.go

+ 1 - 1
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{"[email protected]"})