SSSD Configuration
Provides access to complete SSSD configuration: /etc/sssd/sssd.conf with merged configuration snippets from /etc/sssd/conf.d.
- class insights.combiners.sssd_conf.SSSDConfAll(sssd_conf=None, sssd_conf_d=None)[source]
Bases:
object
Provides access to complete SSSD configuration: /etc/sssd/sssd.conf with merged configuration snippets from /etc/sssd/conf.d.
- domain_config(domain)[source]
Return the configuration dictionary for a specific domain, given as the raw name as listed in the ‘domains’ property of the sssd section. This then looks for the equivalent ‘domain/{domain}’ section of the config file.
- domain_get(domain, option, default=None)[source]
Lookup option in domain.
- Parameters:
domain (str) -- The SSSD domain name.
option (str) -- The option str to search for.
default (any) -- Default value if the option is not found.
- Returns:
Returns the value of the option in the specified section.
- Return type:
str
- domain_getboolean(domain, option, default=None)[source]
Lookup boolean option in domain.
- Parameters:
domain (str) -- The SSSD domain name.
option (str) -- The option str to search for.
default (any) -- Default value if the option is not found.
- Returns:
Returns boolean form based on the data from get.
- Return type:
bool
- domain_section(domain)[source]
Transform plain SSSD domain name into a configuration section.
ipa.test -> domain/ipa.test
- Parameters:
domain (str) -- SSSD domain name.
- Returns:
Returns the configuration section.
- Return type:
str
- property enabled_domains
Returns the list of enabled domains.
Domains can be enabled either using the
domains
option in thesssd
section of the configuration file or using theenabled
option in the domain configuration.[sssd] domains = a, b
[domain/a] …
[domain/b] …
[domain/c] enabled = true