Skip to content

Commit

Permalink
ldap包使用v3版本
Browse files Browse the repository at this point in the history
  • Loading branch information
gsw945 committed Sep 2, 2022
1 parent 2c07195 commit 4c6ef05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/ldap.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]"})

Expand Down

0 comments on commit 4c6ef05

Please sign in to comment.