Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

8.5.2.2. 为 ID 视图设置域解析顺序

选择此选项以将设置应用到特定域中的客户端。
例如,在子域服务器上 server.idm.example.com,您会看到来自 subdomain2.ad.example.com 的子域比来自 subdomain1.ad.example.com 的更多登录。但是,全局解析顺序指出,在解析用户名时,subdomain1.ad.example.com 子域用户数据库在 subdomain2.ad.example.com 之前被尝试。要为特定服务器设置不同的顺序,为特定视图设置域解析顺序:
  1. 使用域解析顺序选项集创建一个 ID 视图:
    $ ipa idview-add example_view --desc "ID view for custom shortname resolution on server.idm.example.com" --domain-resolution-order subdomain2.ad.example.com:subdomain1.ad.example.com
    ---------------------------------
    Added ID View "example_view"
    ---------------------------------
    ID View Name: example_view
    Description: ID view for custom shortname resolution on server.idm.example.com
    Domain Resolution Order: subdomain2.ad.example.com:subdomain1.ad.example.com
  2. 在客户端上应用视图。例如:
    $ ipa idview-apply example_view --hosts server.idm.example.com
    -----------------------------------
    Applied ID View "example_view"
    -----------------------------------
    hosts: server.idm.example.com
    ---------------------------------------------
    Number of hosts the ID View was applied to: 1
    ---------------------------------------------
有关 ID 视图的详情请参考 第 8 章 在 Active Directory 环境中使用 ID 视图