50.3. IdM サーバーの ID ビューのドメイン解決順序設定
Identity Management (IdM)ID ビューのドメイン解決順序を設定することで、特定のホストセット上でユーザー名とグループ名を解決する際に、最初に検索されるドメインを制御できます。
IdM ホスト client1.idm.example.com に対して、ADsubdomain1_first という名前の ID ビューを作成し、特定のドメイン解決順序を定義します。この設定では、ユーザー検索とグループ検索の優先順位が以下のとおりです。
-
Active Directory (AD) 子ドメイン
subdomain1.ad.example.com -
AD root ドメイン
ad.example.com -
IdM ドメイン
idm.example.com
ID ビューで設定したドメイン解決の順序は、グローバルなドメイン解決順序より優先されますが、SSSD 設定でローカルに設定されたドメイン解決順序をオーバーライドすることはありません。
前提条件
- AD 環境で信頼を設定している。
手順
--domain-resolution-orderオプションを設定して ID ビューを作成します。[user@server ~]$ ipa idview-add ADsubdomain1_first --desc "ID view for resolving AD subdomain1 first on client1.idm.example.com" --domain-resolution-order subdomain1.ad.example.com:ad.example.com:idm.example.com --------------------------------- Added ID View "ADsubdomain1_first" --------------------------------- ID View Name: ADsubdomain1_first Description: ID view for resolving AD subdomain1 first on client1.idm.example.com Domain Resolution Order: subdomain1.ad.example.com:ad.example.com:idm.example.comID ビューを IdM ホストに適用します。
[user@server ~]$ ipa idview-apply ADsubdomain1_first --hosts client1.idm.example.com ----------------------------------- Applied ID View "ADsubdomain1_first" ----------------------------------- hosts: client1.idm.example.com --------------------------------------------- Number of hosts the ID View was applied to: 1 ---------------------------------------------
検証
ID ビューの詳細を表示します。
[user@server ~]$ ipa idview-show ADsubdomain1_first --show-hosts ID View Name: ADsubdomain1_first Description: ID view for resolving AD subdomain1 first on client1.idm.example.com Hosts the view applies to: client1.idm.example.com Domain resolution order: subdomain1.ad.example.com:ad.example.com:idm.example.com短縮名だけを使用して、
subdomain1.ad.example.comドメインからユーザー情報を取得できることを確認します。[root@client1 ~]# id <user_from_subdomain1> uid=1916901106(user_from_subdomain1) gid=1916900513(domain users) groups=1916900513(domain users)