13.5. 为 LDAP 刷新外部用户组
要在 Auth Source 页面中将 LDAP 源设置为在用户登录时自动同步用户组成员资格,请选择 Usergroup Sync 选项。如果没有选择此选项,则默认情况下,LDAP 用户组会通过调度的 cron 作业自动刷新每 30 分钟同步 LDAP 身份验证源。
如果 LDAP 身份验证源中的用户组在调度的任务间发生了变化,用户可以将用户分配给不正确的外部用户组。当调度的任务运行时,它会被自动更正。
使用此流程手动刷新 LDAP 源。
流程
- 导航到 Administer > Usergroups 并选择一个用户组。
- 导航到 External Groups 选项卡,再单击 Refresh to the required user group 右侧的。
CLI 过程
输入以下命令:
foreman-rake ldap:refresh_usergroups
# foreman-rake ldap:refresh_usergroups
Copy to Clipboard Copied! Toggle word wrap Toggle overflow