This commit is contained in:
laodaming 2023-11-20 12:03:07 +08:00
parent 2a5c6a4d9e
commit 833f0ffcf5

View File

@ -74,6 +74,7 @@ func (l *CreateLdapUserLogic) CreateLdapUser(req *types.CreateLdapUserReq, useri
"shadowWarning": {"7"}, //固有属性 "shadowWarning": {"7"}, //固有属性
"loginShell": {"/usr/sbin/nologin"}, //固有属性 "loginShell": {"/usr/sbin/nologin"}, //固有属性
"homeDirectory": {"/home/users/" + userNamePinyin}, "homeDirectory": {"/home/users/" + userNamePinyin},
"employeeType": {"1"}, //1正式 2实习 3外包
"uidNumber": {fmt.Sprintf("%d", userData.Id)}, "uidNumber": {fmt.Sprintf("%d", userData.Id)},
"gidNumber": {fmt.Sprintf("%d", userData.Id)}, "gidNumber": {fmt.Sprintf("%d", userData.Id)},
"uid": {userNamePinyin}, "uid": {userNamePinyin},