-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/18/2014 06:06 AM, Jakub Hrozek wrote:
> On Thu, Jul 17, 2014 at 12:54:54PM -0300, Felipe Pereira wrote:
>> Is there a way to dump all config settings?
>> 
>> I'd like to know the defaults configured for everything I didn't
>> set in the sssd.conf.
> 
> If you bump the debug_level of a domain to 0x0400 you will see the 
> backend configuration options. The output looks similar to this one
> from my test setup:
> 
> (Fri Jul 18 06:06:30 2014) [sssd[be[win.example.com]]]
> [dp_get_options] (0x0400): Option ad_domain has value
> win.example.com (Fri Jul 18 06:06:30 2014)
> [sssd[be[win.example.com]]] [dp_get_options] (0x0400): Option
> ad_server has no value (Fri Jul 18 06:06:30 2014)
> [sssd[be[win.example.com]]] [dp_get_options] (0x0400): Option
> ad_backup_server has no value (Fri Jul 18 06:06:30 2014)
> [sssd[be[win.example.com]]] [dp_get_options] (0x0400): Option
> ad_hostname has no value (Fri Jul 18 06:06:30 2014)
> [sssd[be[win.example.com]]] [dp_get_options] (0x0400): Option
> krb5_keytab has no value (Fri Jul 18 06:06:30 2014)
> [sssd[be[win.example.com]]] [dp_get_options] (0x0400): Option
> krb5_realm has value WIN.EXAMPLE.COM (Fri Jul 18 06:06:30 2014)
> [sssd[be[win.example.com]]] [dp_get_options] (0x0400): Option
> ad_enable_dns_sites is TRUE (Fri Jul 18 06:06:30 2014)
> [sssd[be[win.example.com]]] [dp_get_options] (0x0400): Option
> ad_access_filter has no value (Fri Jul 18 06:06:30 2014)
> [sssd[be[win.example.com]]] [dp_get_options] (0x0400): Option
> ad_enable_gc is TRUE (Fri Jul 18 06:06:30 2014)
> [sssd[be[win.example.com]]] [dp_get_options] (0x0400): Option
> ad_gpo_access_control has value permissive


That doesn't describe the responder options or monitor options, though.

I think what you want to do is use the SSSDConfig python API, which
you can use to see all of the options and their current values.

Unfortunately, it's not well documented (outside of the pydoc in the
source), but the general approach would be something like:

(as root)

import SSSDConfig

cfg = SSSDConfig.SSSDConfig()
cfg.import_config()

print cfg.list_services()
svc = cfg.get_service('nss')
opt_dict = svc.list_options()

print cfg.list_domains()
dom = cfg.get_domain('example.com')
dom_opt_dict = dom.list_options()

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlPOcuMACgkQeiVVYja6o6OONACeJ14PHlrZWJkSWZY1RS4Uunxl
9WEAnRjG+bPIWUaAFQ4x2cmYGOr2Hvzx
=5iyu
-----END PGP SIGNATURE-----
_______________________________________________
sssd-users mailing list
sssd-users@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/sssd-users

Reply via email to