We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88dba4e commit 3cea73dCopy full SHA for 3cea73d
service/ildap/user_ildap.go
@@ -44,7 +44,7 @@ func (x UserService) Add(user *model.User) error {
44
// Update 更新资源
45
func (x UserService) Update(oldusername string, user *model.User) error {
46
modify := ldap.NewModifyRequest(user.UserDN, nil)
47
- modify.Replace("cn", []string{user.Nickname})
+ modify.Replace("cn", []string{user.Username})
48
modify.Replace("sn", []string{oldusername})
49
modify.Replace("businessCategory", []string{user.Departments})
50
modify.Replace("departmentNumber", []string{user.Position})
0 commit comments