SSSD Script python reference

LMI SSSD provider client library.

This set of functions can list and manage SSSD’s responders and domains.

lmi.scripts.sssd.debug_level(level)[source]

Return hexadecimal representation of debug level.

Parameters:level (int) – Debug level.
Return type:string
lmi.scripts.sssd.disable_backend(ns, domain)[source]

Disables backend of given domain.

Parameters:domain (string) – Name of the domain to disable.
Return type:int
Rvalue :0 on success
lmi.scripts.sssd.disable_service(ns, service)[source]

Disable given SSSD service.

Parameters:service (string) – Name of the service to disable.
Return type:int
Rvalue :0 on success.
lmi.scripts.sssd.enable_backend(ns, domain)[source]

Enables backend of given domain.

Parameters:domain (string) – Name of the domain to enable.
Return type:int
Rvalue :0 on success
lmi.scripts.sssd.enable_service(ns, service)[source]

Enable given SSSD service.

Parameters:service (string) – Name of the service to enable.
Return type:int
Rvalue :0 on success.
lmi.scripts.sssd.get_backend(ns, domain)[source]

Return LMIInstance of LMI_SSSDBackend for given domain.

Parameters:domain (string) – Name of domain to inspect.
Return type:LMIInstance of LMI_SSSDBackend
lmi.scripts.sssd.get_domain(ns, domain)[source]

Return LMIInstance of given LMI_SSSDDomain.

Parameters:domain (string) – Name of the domain to find.
Return type:LMIInstance of LMI_SSSDDomain
lmi.scripts.sssd.get_provider(ns, type, backend)[source]

Returns SSSD provider for given backend.

Parameters:
  • type (string) – Type of the provider (= value of its LMI_SSSDProvider.Type property).
  • backed – SSSD backend to inspect.
Return type:

string

Rvalue :

The provider module (= value of LMI_SSSDProvider.Module property).

lmi.scripts.sssd.get_service(ns, service)[source]

Return LMIInstance of LMI_SSSDResponder.

Parameters:service (string) – Name of the service to return.
Return type:LMIInstance
lmi.scripts.sssd.list_backends(ns, kind='all')[source]

Generate list of SSSD backends.

Parameters:kind (string) – Either ‘all’, ‘disabled’ or ‘enabled’.
Return type:(list of) LMIInstances
lmi.scripts.sssd.list_services(ns, kind='all')[source]

Generates LMIInstances of LMI_SSSDResponder. Optionally, only the enabled or disabled are listed.

Parameters:kind (string) – Either ‘all’, ‘disabled’ or ‘enabled’.
Return type:(list of) LMIInstances
lmi.scripts.sssd.list_subdomains_comma_separated(ns, domain)[source]

List subdomains of given domain.

Parameters:domain (LMIInstance of LMI_SSSDDomain) – Domain to inspect.
Return type:string
Rvalue :Comma-separated list of subdomains.
lmi.scripts.sssd.list_subdomains_names(ns, domain)[source]

List subdomains of given domain.

Parameters:domain (LMIInstance of LMI_SSSDDomain) – Domain to inspect.
Return type:list of LMIInstances of LMI_SSSDDomain.
lmi.scripts.sssd.set_debug_level(ns, level, all, until_restart, components)[source]

Configure log level of given components.

Parameters:
  • level (int) – Log level.
  • all (boolean) – Whether the log level should be set to all components or not.
  • until_restart (boolean) – Whether the log level should be set permanently (False) or just until next SSSD restart (True).
  • components (list) – List of strings with name of components, which should be configured.
Return type:

int

Rvalue :

0 on success

Previous topic

Software Script python reference

Next topic

Storage Script python reference

This Page