This commit is contained in:
laodaming 2023-11-16 17:20:32 +08:00
parent b0750bdafc
commit 32152074a1

View File

@ -69,8 +69,8 @@ func (l *CreateLdapUserLogic) CreateLdapUser(req *types.CreateLdapUserReq, useri
"homeDirectory": {"/home/users/" + userNamePinyin},
"uidNumber": {fmt.Sprintf("%d", userData.Id)},
"gidNumber": {fmt.Sprintf("%d", userData.Id)},
"uid": {fmt.Sprintf("%d", userData.Id)},
"cn": {userNamePinyin},
"uid": {userNamePinyin},
"cn": {req.Email},
"sn": {req.UserName},
"mail": {req.Email},
"postalCode": {fmt.Sprintf("%d", req.Status)},