This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.17.5.4. 使用 Active Directory 模式同步组
在 Active Directory 模式中,两个用户(Jane 和 Jim)都作为第一类条目存在于 LDAP 服务器中,组成员资格则存储在用户的属性中。以下 ldif
片段定义了这个模式的用户和组:
使用 Active Directory 模式的 LDAP 条目: active_directory.ldif
- 1
- 用户的组成员资格列为用户的属性,组没有作为条目存在于服务器中。
memberOf
属性不一定是用户的字面量属性;在一些 LDAP 服务器中,它在搜索过程中创建并返回给客户端,但不提交给数据库。
先决条件
- 创建配置文件。
流程
使用
active_directory_config.yaml
文件运行同步:oc adm groups sync --sync-config=active_directory_config.yaml --confirm
$ oc adm groups sync --sync-config=active_directory_config.yaml --confirm
Copy to Clipboard Copied! Toggle word wrap Toggle overflow OpenShift Container Platform 创建以下组记录作为上述同步操作的结果:
使用
active_directory_config.yaml
文件创建的 OpenShift Container Platform 组Copy to Clipboard Copied! Toggle word wrap Toggle overflow