搜索

16.8. 在 Windows 同步中配置多个子树和过滤器

download PDF
Windows 同步旨在在目录服务器(DS)和 Active Directory (AD)上的多个子树对之间同步。通过使用过滤器,仅同步子树下的指定条目。

Windows 同步中的多个子树

要在多个子树对之间同步,请在 Windows 同步协议中的 winSyncSubtreePair 参数中配置 Directory 服务器和 Active Directory 子树。例如,要设置多个 ou=OU1、dc=DSexample、dc=comou=OU1,DC=ADexample,DC=com 子树:
# dsconf -D "cn=Directory Manager" ldap://server.example.com repl-winsync-agmt set --subtree-pair="ou=OU1,dc=DSexample,dc=com:ou=OU1,DC=ADexample,DC=com" --suffix="dc=example,dc=com" example-agreement
如果没有设置 winSyncSubtreePairnsds7WindowsReplicaSubtree AD 子树参数和 nsds7DirectoryReplicaSubtree DS 子树参数用于同步目标检查。否则,这两个参数将被忽略。

Windows 同步中的过滤器

您可以设置在以下参数中选择同步数据的过滤器:
  • --win-filter 在 Active Directory 服务器上设置额外的过滤器,
  • --ds-filter 参数在 Directory Server 上设置额外的过滤器。
以下示例配置,example_agreement 同步条目,它包含 usergroup 属性:
# dsconf -D "cn=Directory Manager" ldap://server.example.com repl-winsync-agmt \
     set --win-filter="(|(cn=*user*)(cn=*group*))" --ds-filter="(|(uid=*user*)(cn=*group*))" \
     example_agreement
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.