Chapter 9. Querying domain information using SSSD
The sssctl utility retrieves domain data from the System Security Services Daemon (SSSD), covering Identity Management and trusted Active Directory realms. Use this tool to audit available domains and verify connection status for troubleshooting.
9.1. Listing domains using sssctl Copy linkLink copied to clipboard!
The sssctl domain-list command outputs all detected identity domains, including local files and trusted external directories. This list helps you to verify the domain topology and ensure complete visibility of identity sources.
The status might not be available immediately. If the domain is not visible, repeat the command.
Prerequisites
- You must be logged in with administrator privileges.
Procedure
Optional: To display help for the
sssctlcommand, enter:[user@client1 ~]$ sssctl --help ...To display a list of available domains, enter:
[root@client1 ~]# sssctl domain-listimplicit_files idm.example.com ad.example.com sub1.ad.example.comThe list includes domains in the cross-forest trust between Active Directory and Identity Management.
9.2. Verifying the domain status using sssctl Copy linkLink copied to clipboard!
The sssctl domain-status command checks the real-time connectivity of a specific domain. This utility confirms server reachability and online status, assisting you in diagnosing network or configuration failures.
The status might not be available immediately. If the domain is not visible, repeat the command.
Prerequisites
- You must be logged in with administrator privileges.
Procedure
Optional: To display help for the
sssctlcommand, enter:[user@client1 ~]$ sssctl --helpTo display user data for a particular domain, replace
<domain_name>with the actual domain name and enter:[root@client1 ~]# sssctl domain-status <domain_name>Example output for the domain idm.example.com
Online status: Online Active servers: IPA: server.idm.example.com Discovered IPA servers: - server.idm.example.comThe domain
idm.example.comis online and visible from the client where you applied the command.If the domain is not available, the result is:
[root@client1 ~]# sssctl domain-status <domain_name>Unable to get online status