Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

定时任务SearchUserDiff总是会把用户设置为2 #365

Open
ywxkz opened this issue Sep 4, 2024 · 1 comment
Open

定时任务SearchUserDiff总是会把用户设置为2 #365

ywxkz opened this issue Sep 4, 2024 · 1 comment
Labels
bug Something isn't working Inactive

Comments

@ywxkz
Copy link

ywxkz commented Sep 4, 2024

定时任务SearchUserDiff总是会把用户sync_state状态设置为2,相关代码:err = isql.User.ChangeSyncState(int(user.ID), 2),导致找会密码的时候提示:该用户已离职或者未同步在ldap ...

相关代码:
if user.Status != 1 || user.SyncState != 1 {
return nil, tools.NewMySqlError(fmt.Errorf("该用户已离职或者未同步在ldap,无法重置密码,如有疑问,请联系管理员"))
}

另外在后台删除用户,cn=group里面的uniqueMember不会同步删除,mysql.groups表里面的用户数据也不会同步删除。

还有个小建议:修改密码的时候,新密码长度最好有8位的强制要求

@ywxkz ywxkz added the bug Something isn't working label Sep 4, 2024
@eryajf
Copy link
Collaborator

eryajf commented Sep 4, 2024

您好 @E-era👋,我已收到您的反馈,我将安排时间考虑您提交的信息并进行回复。-- 这条信息是由自动回复的机器人发出的。

Hello @E-era. I have received your feedback, and I will arrange time to consider the information you submitted and reply. -- This message is sent by an automatic reply robot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Inactive
Projects
None yet
Development

No branches or pull requests

2 participants