8000 定时任务SearchUserDiff总是会把用户设置为2 · Issue #365 · opsre/go-ldap-admin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
定时任务SearchUserDiff总是会把用户设置为2 #365
Open
@ywxkz

Description

@ywxkz

定时任务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位的强制要求

Metadata

Metadata

Assignees

No one assigned

    Labels

    InactivebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0