SSSD.CONF(5)

okay bestie, welcome to SSSD.CONF(5) from File Formats and Conventions โ€” literally the manual page for sssd.conf, the configuration file for SSSD. ๐ŸŽ€ The group chat is open, letโ€™s get you fluent. ๐Ÿ’…

๐ŸŒธ NAME ๐ŸŒธ

sssd.conf โ€” the configuration file for SSSD. ๐Ÿซถ

๐Ÿ“ FILE FORMAT ๐Ÿ“

The file has an ini-style syntax and consists of sections and parameters. A section begins with the name of the section in square brackets and continues until the next section begins. Hereโ€™s an example of a section with single and multi-valued parameters:

[section]
key = value
key2 = value2,value3

The data types used are string (no quotes needed), integer and bool (with values of TRUE/FALSE).

A comment line starts with a hash sign (#) or a semicolon (;). Inline comments are not supported. ๐Ÿ˜ญ

All sections can have an optional description parameter. Its function is only as a label for the section.

sssd.conf must be a regular file that is accessible only by the user used to run SSSD service or root. ๐Ÿ‘‘

๐Ÿ“‚ CONFIGURATION SNIPPETS FROM INCLUDE DIRECTORY ๐Ÿ“‚

The configuration file sssd.conf will include configuration snippets using the include directory conf.d.

Any file placed in conf.d that ends in .conf and does not begin with a dot (.) will be used together with sssd.conf to configure SSSD.

The configuration snippets from conf.d have higher priority than sssd.conf and will override sssd.conf when conflicts occur. If several snippets are present in conf.d, then they are included in alphabetical order (based on locale). Files included later have higher priority. Numerical prefixes (01_snippet.conf, 02_snippet.conf etc.) can help visualize the priority (higher number means higher priority). ๐Ÿ”ฅ

The snippet files require the same owner and permissions as sssd.conf.

โš™๏ธ GENERAL OPTIONS โš™๏ธ

Following options are usable in more than one configuration sections. Yes, bestie, thatโ€™s the original phrasing and weโ€™re keeping it. ๐Ÿ˜Œ

๐Ÿงธ Options usable in all sections ๐Ÿงธ

  • debug_level (integer) โ€” SSSD supports two representations for specifying the debug level. The simplest is a decimal value from 0โ€“9, which represents enabling that level and all lower-level debug messages. The more comprehensive option is to specify a hexadecimal bitmask to enable or disable specific levels (such as if you wish to suppress a level).

Each SSSD service logs into its own log file. Also, enabling debug_level in the [sssd] section only enables debugging just for the sssd process itself, not for the responder or provider processes. The debug_level parameter should be added to all sections that you wish to produce debug logs from.

In addition to changing the log level in the config file using the debug_level parameter, which is persistent but requires SSSD restart, it is also possible to change the debug level on the fly using the sss_debuglevel(8) tool.

Currently supported debug levels:

  • 0, 0x0010: Fatal failures. Anything that would prevent SSSD from starting up or causes it to cease running.
  • 1, 0x0020: Critical failures. An error that doesn't kill SSSD, but one that indicates that at least one major feature is not going to work properly.
  • 2, 0x0040: Serious failures. An error announcing that a particular request or operation has failed.
  • 3, 0x0080: Minor failures. These are the errors that would percolate down to cause the operation failure of 2.
  • 4, 0x0100: Configuration settings.
  • 5, 0x0200: Function data.
  • 6, 0x0400: Trace messages for operation functions.
  • 7, 0x1000: Trace messages for internal control functions.
  • 8, 0x2000: Contents of function-internal variables that may be interesting.
  • 9, 0x4000: Extremely low-level tracing information.
  • 9, 0x20000: Performance and statistical data, please note that due to the way requests are processed internally the logged execution time of a request might be longer than it actually was.
  • 10, 0x10000: Even more low-level libldb tracing information. Almost never really required.

To log required bitmask debug levels, simply add their numbers together as shown in following examples:

  • Example: To log fatal failures, critical failures, serious failures and function data use 0x0270.
  • Example: To log fatal failures, configuration settings, function data, trace messages for internal control functions use 0x1310.
Note: The bitmask format of debug levels was introduced in 1.7.0.

Default: 0x0070 (i.e. fatal, critical and serious failures; corresponds to setting 2 in decimal notation)

  • debug (integer) โ€” SSSD 1.14 and later also includes the debug alias for debug_level as a convenience feature. If both are specified, the value of debug_level will be used. ๐Ÿช„
  • debug_timestamps (bool) โ€” Add a timestamp to the debug messages. If journald is enabled for SSSD debug logging this option is ignored.

Default: true

  • debug_microseconds (bool) โ€” Add microseconds to the timestamp in debug messages. If journald is enabled for SSSD debug logging this option is ignored.

Default: false

  • debug_backtrace_enabled (bool) โ€” Enable debug backtrace.

In case SSSD is run with debug_level less than 9, everything is logged to a ring buffer in memory and flushed to a log file on any error up to and including min(0x0040, debug_level) (i.e. if debug_level is explicitly set to 0 or 1 then only those error levels will trigger backtrace, otherwise up to 2).

Feature is only supported for logger == files (i.e. setting doesn't have effect for other logger types).

Default: true

๐Ÿซถ Options usable in SERVICE and DOMAIN sections ๐Ÿซถ

  • timeout (integer) โ€” Timeout in seconds between heartbeats for this service. This is used to ensure that the process is alive and capable of answering requests. Note that after three missed heartbeats the process will terminate itself. ๐Ÿ’€

Default: 10

๐ŸŒธ The [sssd] section ๐ŸŒธ

Okay so listen โ€” every individual piece of SSSD functionality? It's provided by special SSSD services, and those bad boys get started and stopped right along with SSSD itself. They're managed by a special service that everyone calls the "monitor" ๐Ÿ‘‘. And the [sssd] section is literally where you configure the monitor plus some other important stuff like the identity domains. Main character section fr fr.

Section parameters

  • services โ€” a comma separated list of services that get started when sssd itself starts. Lowkey this list is optional on platforms where systemd is supported, because they'll either be socket or D-Bus activated when needed. The supported services are: nss, pam, ifp, sudo, autofs, ssh, pac. By default all services are disabled, and the admin has to enable the ones allowed to be used by executing: systemctl enable sssd-@service@.socket ๐Ÿ’…
  • domains โ€” a domain is basically a database containing user information. SSSD can use more domains at the same time, but at least one must be configured or SSSD won't start, periodt. This parameter describes the list of domains in the order you want them to be queried. A domain name is recommended to contain only alphanumeric ASCII characters, dashes, dots and underscores. The / character is forbidden ๐Ÿšซ.
  • re_expression (string) โ€” the default regular expression that describes how to parse the string containing user name and domain into these components. Each domain can have an individual regular expression configured, too. And for some ID providers there are also default regular expressions โ€” see DOMAIN SECTIONS for more info on those. iykyk โœจ
  • full_name_format (string) โ€” a printf(3)-compatible format that describes how to compose a fully qualified name from the user name and domain name components. Here's the expansions it supports:
    • %1$s โ€” user name
    • %2$s โ€” domain name as specified in the SSSD config file
    • %3$s โ€” domain flat name. Mostly usable for Active Directory domains, both directly configured or discovered via IPA trusts. Each domain can have an individual format string configured. See DOMAIN SECTIONS for more info on this option.
  • monitor_resolv_conf (boolean) โ€” controls if SSSD should monitor the state of resolv.conf to identify when it needs to update its internal DNS resolver. Default: true.
  • try_inotify (boolean) โ€” by default, SSSD will attempt to use inotify to monitor configuration file changes, and will fall back to polling every five seconds if inotify can't be used. There are some limited situations where it's preferred that we skip even trying to use inotify โ€” in these rare cases, set this option to 'false'. Default: true on platforms where inotify is supported, false on other platforms.
Note: this option will have no effect on platforms where inotify is unavailable. On those platforms, polling will always be used. No exceptions bestie ๐Ÿซถ
  • krb5_rcache_dir (string) โ€” directory on the filesystem where SSSD should store Kerberos replay cache files. This option accepts a special value __LIBKRB5_DEFAULTS__ that will instruct SSSD to let libkrb5 decide the appropriate location for the replay cache. Default: distribution-specific and specified at build-time (__LIBKRB5_DEFAULTS__ if not configured).
  • default_domain_suffix (string) โ€” โš ๏ธ heads up bestie: please note that this option is deprecated and domain_resolution_order should be used instead. This string will be used as a default domain name for all names without a domain name component. The main use case is environments where the primary domain is intended for managing host policies and all users are located in a trusted domain โ€” this option lets those users log in just with their user name, without also giving a domain name. Please note that if this option is set, all users from the primary domain have to use their fully qualified name, e.g. user@domain.name, to log in. Setting this option changes the default of use_fully_qualified_names to True. It is not allowed to use this option together with use_fully_qualified_names set to False ๐Ÿ˜ค Default: not set.
  • override_space (string) โ€” this parameter will replace spaces (space bar) with the given character for user and group names, e.g. (_). User name "john doe" will be "john_doe". This feature was added to help compatibility with shell scripts that have difficulty handling spaces, due to the default field separator in the shell. Please note it's a configuration error to use a replacement character that might be used in user or group names โ€” if a name contains the replacement character, SSSD tries to return the unmodified name, but in general the result of a lookup is undefined ๐Ÿ™ˆ Default: not set (spaces will not be replaced).
  • certificate_verification (string) โ€” with this parameter you can tune the certificate verification with a comma separated list of options. Supported options are:
    • no_ocsp โ€” disables Online Certificate Status Protocol (OCSP) checks. This might be needed if the OCSP servers defined in the certificate aren't reachable from the client.
    • soft_ocsp โ€” if a connection can't be established to an OCSP responder, the OCSP check is skipped. This option should be used to allow authentication when the system is offline and the OCSP responder can't be reached.
    • ocsp_dgst โ€” digest (hash) function used to create the certificate ID for the OCSP request. Allowed values are:
      • sha1
      • sha256
      • sha384
      • sha512 Default: sha1 (to allow compatibility with RFC5019-compliant responder).
    • no_verification โ€” disables verification completely. This option should only be used for testing ๐Ÿ‘€
    • partial_chain โ€” allow verification to succeed even if a complete chain can't be built to a self-signed trust-anchor, provided it's possible to construct a chain to a trusted certificate that might not be self-signed.
    • ocsp_default_responder=URL โ€” sets the OCSP default responder that should be used instead of the one mentioned in the certificate. URL must be replaced with the URL of the OCSP default responder, e.g. http://example.com:80/ocsp.
    • ocsp_default_responder_signing_cert=NAME โ€” this option is currently ignored ๐Ÿซ  all needed certificates must be available in the PEM file given by pam_cert_db_path.
    • crl_file=/PATH/TO/CRL/FILE โ€” use the Certificate Revocation List (CRL) from the given file during the verification of the certificate. The CRL must be given in PEM format, see crl(1ssl) for details.
    • soft_crl โ€” if a Certificate Revocation List (CRL) is expired, ignore the expiration time of the CRL and check the related certificates with the expired CRL. This option should be used to allow authentication when the system is offline and the CRL can't be renewed. Unknown options are reported but ignored. Default: not set, i.e. do not restrict certificate verification.
  • disable_netlink (boolean) โ€” SSSD hooks into the netlink interface to monitor changes to routes, addresses, links and trigger certain actions. The SSSD state changes caused by netlink events may be undesirable and can be disabled by setting this option to 'true'. Default: false (netlink changes are detected).
  • domain_resolution_order โ€” a comma separated list of domains and subdomains representing the lookup order that will be followed. The list doesn't have to include all possible domains, since the missing domains will be looked up based on the order they're presented in the domains configuration option. The subdomains which aren't listed as part of lookup_order will be looked up in a random order for each parent domain ๐ŸŽฒ Please note that when this option is set, the output format of all commands is always fully-qualified even when using short names for input. In case the administrator wants the output not fully-qualified, the full_name_format option can be used as shown below: full_name_format=%1$s. However, keep in mind that during login, login applications often canonicalize the username by calling getpwnam(3) which โ€” if a shortname is returned for a qualified input (while trying to reach a user which exists in multiple domains) โ€” might re-route the login attempt into the domain which uses shortnames, making this workaround totally not recommended in cases where usernames may overlap between domains. Consider yourself warned ๐Ÿ’€ Default: Not set.
  • implicit_pac_responder (boolean) โ€” the PAC responder is enabled automatically for the IPA and AD provider to evaluate and check the PAC. If it has to be disabled, set this option to 'false'. Default: true.
  • core_dumpable (boolean) โ€” this option can be used for general system hardening: setting it to 'false' forbids core dumps for all SSSD processes to avoid leaking plain text passwords ๐Ÿ”. See man page prctl:PR_SET_DUMPABLE on Linux or procctl:PROC_TRACE_CTL on FreeBSD for details. Take a note that this setting has no effect for ldap_child, krb5_child and sssd_pam, since those privileged binaries can have a copy of host keytab data in memory, and their behavior in this regards is governed by the /proc/sys/fs/suid_dumpable system setting. Default: true.
  • passkey_verification (string) โ€” with this parameter the passkey verification can be tuned with a comma separated list of options. Supported options are:
    • user_verification (boolean) โ€” enable or disable the user verification (i.e. PIN, fingerprint) during authentication. If enabled, the PIN will always be requested. The default is that the key settings decide what to do. In the IPA or kerberos pre-authentication case, this value will be overwritten by the server ๐Ÿ”‘โœจ

๐Ÿฆ‹ SERVICES SECTIONS ๐Ÿฆ‹

Okay so settings that can be used to configure different services are described in this section. They should live in the [$NAME] section โ€” like, for the NSS service, the section would be [nss] ๐Ÿ’–

โœจ General service configuration options โœจ

These options can be used to configure any service.

  • fd_limit โ€” the max number of file descriptors this SSSD process is allowed to have open at one time ๐Ÿ’… heads up tho: this value gets capped by your init system when SSSD starts up, so check man systemd.exec for the deets. Default is 8192 (or the limits.conf "hard" limit, whichever applies) ๐Ÿซถ
  • client_idle_timeout โ€” how many seconds a client of an SSSD process can just sit there holding a file descriptor without actually talking on it ๐Ÿ˜ด this is a whole anti-resource-exhaustion thing, so the timeout literally cannot be shorter than 10 seconds โ€” configure something lower and it gets bumped up to 10. Default: 60, and for KCM: 300 โœจ
  • responder_idle_timeout โ€” how many seconds an SSSD responder process can be alive without anybody using it ๐Ÿฆ‹ same energy as above, it's capped so the system doesn't run out of resources. Minimum acceptable value is 60 seconds. Set it to 0 (zero) and no timeout gets set up on the responder at all. Lowkey important: this only does anything when SSSD is built with systemd support and the services are either socket or D-Bus activated ๐Ÿ‘‘ Default: 300
  • cache_first โ€” should the responder go query all the caches before it bothers the Data Providers? ๐Ÿ”ฅ Default: true

๐Ÿ’… NSS configuration options ๐Ÿ’…

These ones are all about configuring the Name Service Switch (NSS) service, bestie ๐ŸŒธ

  • enum_cache_timeout (integer) โ€” how many seconds nss_sss should cache enumerations (that's requests for info about all users, iykyk). Default: 120 โญ
  • entry_cache_nowait_percentage (integer) โ€” okay so this one lets the entry cache auto-update entries in the background when they're requested past a certain percentage of the entry_cache_timeout value for the domain โœจ

Like, say your domain's entry_cache_timeout is 30s and you set entry_cache_nowait_percentage to 50 (percent) โ€” then entries that come in after 15 seconds past the last cache update get returned immediately, but SSSD will go and update the cache on its own so future requests don't have to block waiting for a cache update ๐ŸŽ€

Valid values are 0-99, and they represent a percentage of the entry_cache_timeout for each domain. For performance reasons this percentage will never reduce the nowait timeout to less than 10 seconds. (0 disables the feature entirely). Default: 50 ๐Ÿฆ‹

  • entry_negative_timeout (integer) โ€” how many seconds nss_sss should cache negative cache hits before asking the back end again ๐Ÿ’€ and yes, "negative hits" means queries for invalid database entries, like ones that don't exist. Default: 15
  • filter_users, filter_groups (string) โ€” exclude certain users or groups from being fetched from the sss NSS database ๐Ÿ™ˆ super useful for system accounts. This can also be set per-domain, or you can include fully-qualified names to filter only users from a particular domain, or filter by a user principal name (UPN) ๐Ÿซถ Default: root
NOTE: the filter_groups option does not affect inheritance of nested group members, because filtering happens after they've been propagated for returning via NSS. So like, a group that has a member group filtered out will still have the member users of that latter group listed ๐Ÿ˜ญ
  • filter_users_in_groups (bool) โ€” if you want a filtered user to still be a group member, set this to false โœจ Default: true
  • override_homedir (string) โ€” override the user's home directory ๐Ÿ  you can give it an absolute value or a template, and in the template these sequences get substituted:
    • %u โ€” login name
    • %U โ€” UID number
    • %d โ€” domain name
    • %f โ€” fully qualified user name (user@domain)
    • %l โ€” the first letter of the login name
    • %P โ€” UPN, aka User Principal Name (name@REALM)
    • %o โ€” the homedir value that's defined in the directory of the identity provider ๐Ÿ’– this substitution is designed to be used in an IPA-AD trust scenario. If it's used for the subdomain_homedir option, it propagates the home directory value from the AD domain to the IPA clients. In that scenario, the option must be set in the SSSD configuration on the IPA server where SSSD is running in server mode ๐Ÿ‘‘
    • %h โ€” the path defined for the homedir directory attribute of the identity provider, but in lower case. For details of use, see %o.
    • %H โ€” the value of the configure option homedir_substring
    • %% โ€” a literal %

This option can also be set per-domain, bestie ๐Ÿฆ‹

example:

override_homedir = /home/%u

Default: Not set (SSSD will use the value retrieved from LDAP)

Please note: the home directory from a specific override for the user โ€” either locally (see sss_override(8)) or centrally managed IPA id-overrides โ€” has higher precedence and will be used instead of whatever override_homedir says ๐Ÿ’…

  • homedir_substring (string) โ€” the value of this option gets used in the expansion of the override_homedir option when the template contains the format string %H ๐ŸŒธ an LDAP directory entry can directly contain this template, so this option can expand the home directory path for each client machine (or operating system). It can be set per-domain or globally in the [nss] section โ€” and a value in a domain section overrides one set in [nss] โœจ Default: /home
  • fallback_homedir (string) โ€” set a default template for a user's home directory if the domain's data provider doesn't specify one explicitly ๐ŸŽ€ available values are the same as for override_homedir.

example:

fallback_homedir = /home/%u

Default: not set (no substitution for unset home directories) ๐Ÿ˜ญ

  • override_shell (string) โ€” override the login shell for all users ๐Ÿš this supersedes any other shell options if it takes effect, and it can be set in the [nss] section or per-domain. Default: not set (SSSD will use the value retrieved from LDAP)
  • allowed_shells (string) โ€” restrict user shells to one of the listed values ๐Ÿ’… the order of evaluation is:
    1. If the shell is present in /etc/shells, it is used.
    2. If the shell is in the allowed_shells list but not in /etc/shells, use the value of the shell_fallback parameter.
    3. If the shell is not in the allowed_shells list and not in /etc/shells, a nologin shell is used.

The wildcard (*) can be used to allow any shell ๐Ÿ”ฅ and the (*) is genuinely useful if you want to use shell_fallback in case a user's shell isn't in /etc/shells โ€” because maintaining a list of all allowed shells in allowed_shells would be way too much overhead, no cap.

An empty string for shell is passed as-is to libc ๐Ÿซถ

Heads up: /etc/shells is only read on SSSD start up, which means you need to restart SSSD if a new shell gets installed โญ

Default: Not set. The user shell is automatically used.

  • vetoed_shells (string) โ€” replace any instance of these shells with the shell_fallback ๐Ÿ’€
  • shell_fallback (string) โ€” the default shell to use if an allowed shell isn't installed on the machine. Default: /bin/sh โœจ
  • default_shell โ€” the default shell to use if the provider doesn't return one during lookup ๐ŸŒธ can be specified globally in the [nss] section or per-domain. Default: not set (Return NULL if no shell is specified and rely on libc to substitute something sensible when necessary, usually /bin/sh)
  • get_domains_timeout (int) โ€” specifies the time in seconds for which the list of subdomains will be considered valid. Default: 60 ๐Ÿฆ‹
  • memcache_timeout (integer) โ€” specifies the time in seconds for which records in the in-memory cache will be valid โณ setting it to zero disables the in-memory cache entirely. Default: 300
WARNING: disabling the in-memory cache will have a significant negative impact on SSSD's performance, so only do it for testing, bestie, I'm begging ๐Ÿ˜ญ
NOTE: if the environment variable SSS_NSS_USE_MEMCACHE is set to "NO", client applications will not use the fast in-memory cache.
  • memcache_size_passwd (integer) โ€” size (in megabytes) of the data table allocated inside the fast in-memory cache for passwd requests ๐Ÿ’– setting the size to 0 disables the passwd in-memory cache. Default: 8
WARNING: a disabled or too-small in-memory cache can have a significant negative impact on SSSD's performance ๐Ÿ˜ญ
NOTE: if the environment variable SSS_NSS_USE_MEMCACHE is set to "NO", client applications will not use the fast in-memory cache.
  • memcache_size_group (integer) โ€” size (in megabytes) of the data table allocated inside the fast in-memory cache for group requests ๐Ÿ‘ฏ setting it to 0 disables the group in-memory cache. Default: 6
WARNING: a disabled or too-small in-memory cache can have a significant negative impact on SSSD's performance ๐Ÿ˜ญ
NOTE: if the environment variable SSS_NSS_USE_MEMCACHE is set to "NO", client applications will not use the fast in-memory cache.
  • memcache_size_initgroups (integer) โ€” size (in megabytes) of the data table allocated inside the fast in-memory cache for initgroups requests ๐ŸŒˆ setting it to 0 disables the initgroups in-memory cache. Default: 10
WARNING: a disabled or too-small in-memory cache can have a significant negative impact on SSSD's performance ๐Ÿ˜ญ
NOTE: if the environment variable SSS_NSS_USE_MEMCACHE is set to "NO", client applications will not use the fast in-memory cache.
  • memcache_size_sid (integer) โ€” size (in megabytes) of the data table allocated inside the fast in-memory cache for SID related requests ๐ŸŽ€ only SID-by-ID and ID-by-SID requests are currently cached in the fast in-memory cache. Setting the size to 0 disables the SID in-memory cache. Default: 6
WARNING: a disabled or too-small in-memory cache can have a significant negative impact on SSSD's performance ๐Ÿ˜ญ
NOTE: if the environment variable SSS_NSS_USE_MEMCACHE is set to "NO", client applications will not use the fast in-memory cache.
  • user_attributes (string) โ€” okay so some of the extra NSS responder requests can return more attributes than just the POSIX ones defined by the NSS interface. The list of attributes is controlled by this option. Itโ€™s handled the same way as the user_attributes option of the InfoPipe responder (see sssd-ifp(5) for details), but with no default values.

To make configuration easier, the NSS responder will check the InfoPipe option if it is not set for the NSS responder.

Default: not set, fallback to InfoPipe option

  • pwfield (string) โ€” the value that NSS operations returning users or groups will return for the password field.

Default: *

Note: this option can also be set per-domain, and that overwrites the value in the [nss] section.

Default: not set (remote domains), x (proxy domain with nss_files and sssd-shadowutils target)

๐Ÿ’– PAM configuration options ๐Ÿ’–

These options configure the Pluggable Authentication Module (PAM) service. PAM girlies, this oneโ€™s for you ๐Ÿซถ

  • offline_credentials_expiration (integer) โ€” if the authentication provider is offline, how long should we allow cached logins (in days since the last successful online login)?

Default: 0 (No limit)

  • offline_failed_login_attempts (integer) โ€” if the authentication provider is offline, how many failed login attempts are allowed?

Default: 0 (No limit)

  • offline_failed_login_delay (integer) โ€” the time in minutes which has to pass after offline_failed_login_attempts has been reached before a new login attempt is possible.

If set to 0, the user cannot authenticate offline if offline_failed_login_attempts has been reached. Only a successful online authentication can enable offline authentication again.

Default: 5

  • pam_verbosity (integer) โ€” controls what kind of messages are shown to the user during authentication. The higher the number, the more messages are displayed.

Currently sssd supports the following values:

  • 0: do not show any message
  • 1: show only important messages
  • 2: show informational messages
  • 3: show all messages and debug information

Default: 1

  • pam_response_filter (string) โ€” a comma separated list of strings which allows you to remove (filter) data sent by the PAM responder to the pam_sss PAM module. There are different kinds of responses sent to pam_sss, e.g. messages displayed to the user or environment variables which should be set by pam_sss.

While messages already can be controlled with the help of the pam_verbosity option, this option allows you to filter out other kinds of responses as well.

Currently the following filters are supported:

  • ENV โ€” Do not send any environment variables to any service.
  • ENV:var_name โ€” Do not send environment variable var_name to any service.
  • ENV:var_name:service โ€” Do not send environment variable var_name to service.

The list of strings can either be the list of filters which would set this list of filters and overwrite the defaults. Or each element of the list can be prefixed by a + or - character which would add the filter to the existing default or remove it from the defaults, respectively. Please note that either all list elements must have a + or - prefix or none. It is considered an error to mix both styles.

Default: ENV:KRB5CCNAME:sudo, ENV:KRB5CCNAME:sudo-i

Example: -ENV:KRB5CCNAME:sudo-i will remove the filter from the default list

  • pam_id_timeout (integer) โ€” for any PAM request while SSSD is online, SSSD will attempt to immediately update the cached identity information for the user in order to ensure that authentication takes place with the latest information.

A complete PAM conversation may perform multiple PAM requests, such as account management and session opening. This option controls (on a per-client-application basis) how long (in seconds) we can cache the identity information to avoid excessive round-trips to the identity provider.

Default: 5

  • pam_pwd_expiration_warning (integer) โ€” display a warning N days before the password expires.

Please note that the backend server has to provide information about the expiration time of the password. If this information is missing, sssd cannot display a warning.

If zero is set, then this filter is not applied, i.e. if the expiration warning was received from the backend server, it will automatically be displayed.

This setting can be overridden by setting pwd_expiration_warning for a particular domain.

Default: 0

  • get_domains_timeout (int) โ€” specifies time in seconds for which the list of subdomains will be considered valid.

Default: 60

  • pam_trusted_users (string) โ€” specifies the comma-separated list of UID values or user names that are allowed to run PAM conversations against trusted domains. Users not included in this list can only access domains marked as public with pam_public_domains. User names are resolved to UIDs at startup.

Default: All users are considered trusted by default

Please note that UID 0 is always allowed to access the PAM responder even in case it is not in the pam_trusted_users list.

  • pam_public_domains (string) โ€” specifies the comma-separated list of domain names that are accessible even to untrusted users.

Two special values for the pam_public_domains option are defined:

  • all โ€” Untrusted users are allowed to access all domains in the PAM responder.
  • none โ€” Untrusted users are not allowed to access any domains PAM in responder.

Default: none

  • pam_account_expired_message (string) โ€” allows a custom expiration message to be set, replacing the default 'Permission denied' message.

Note: please be aware that the message is only printed for the SSH service unless pam_verbosity is set to 3 (show all messages and debug information).

example:

pam_account_expired_message = Account expired, please contact help desk.

Default: none

  • pam_account_locked_message (string) โ€” allows a custom lockout message to be set, replacing the default 'Permission denied' message.

example:

pam_account_locked_message = Account locked, please contact help desk.

Default: none

  • pam_passkey_auth (bool) โ€” enable passkey device based authentication.

Default: True

  • passkey_debug_libfido2 (bool) โ€” enable libfido2 library debug messages.

Default: False

  • pam_cert_auth (bool) โ€” enable certificate based Smartcard authentication. Since this requires additional communication with the Smartcard which will delay the authentication process, this option is disabled by default.

Default: False

  • pam_cert_db_path (string) โ€” the path to the certificate database.

Default:

  • /etc/sssd/pki/sssd_auth_ca_db.pem (path to a file with trusted CA certificates in PEM format)
  • pam_cert_verification (string) โ€” with this parameter the PAM certificate verification can be tuned with a comma separated list of options that override the certificate_verification value in [sssd] section. Supported options are the same of certificate_verification.

example:

pam_cert_verification = partial_chain

Default: not set, i.e. use default certificate_verification option defined in [sssd] section.

  • p11_child_timeout (integer) โ€” how many seconds will pam_sss wait for p11_child to finish.

Default: 10

  • passkey_child_timeout (integer) โ€” how many seconds will the PAM responder wait for passkey_child to finish.

Default: 15

  • pam_app_services (string) โ€” which PAM services are permitted to contact domains of type application

Default: Not set

  • pam_p11_allowed_services (string) โ€” a comma-separated list of PAM service names for which it will be allowed to use Smartcards.

It is possible to add another PAM service name to the default set by using +service_name or to explicitly remove a PAM service name from the default set by using -service_name. For example, in order to replace a default PAM service name for authentication with Smartcards (e.g. login) with a custom PAM service name (e.g. my_pam_service), you would use the following configuration:

pam_p11_allowed_services = +my_pam_service, -login

Default: the default set of PAM service names includes:

  • login
  • su
  • su-l
  • gdm-smartcard
  • gdm-password
  • gdm-switchable-auth
  • kdm
  • plasmalogin
  • sudo
  • sudo-i
  • gnome-screensaver
  • p11_wait_for_card_timeout (integer) โ€” if Smartcard authentication is required, how many extra seconds in addition to p11_child_timeout should the PAM responder wait until a Smartcard is inserted?

Default: 60

  • p11_uri (string) โ€” PKCS#11 URI (see RFC-7512 for details) which can be used to restrict the selection of devices used for Smartcard authentication. By default SSSD's p11_child will search for a PKCS#11 slot (reader) where the 'removable' flags is set and read the certificates from the inserted token from the first slot found. If multiple readers are connected, p11_uri can be used to tell p11_child to use a specific reader.

Example:

p11_uri = pkcs11:slot-description=My%20Smartcard%20Reader

or

p11_uri = pkcs11:library-description=OpenSC%20smartcard%20framework;slot-id=2

To find suitable URI please check the debug output of p11_child. As an alternative the GnuTLS utility 'p11tool' with e.g. the '--list-all' will show PKCS#11 URIs as well.

Default: none

  • pam_initgroups_scheme โ€” the PAM responder can force an online lookup to get the current group memberships of the user trying to log in. This option controls when this should be done and the following values are allowed:
    • always โ€” Always do an online lookup, please note that pam_id_timeout still applies
    • no_session โ€” Only do an online lookup if there is no active session of the user, i.e. if the user is currently not logged in
    • never โ€” Never force an online lookup, use the data from the cache as long as they are not expired
  • -, default: no_session โ€” that's your fallback vibe, bestie ๐Ÿ’…

  • pam_gssapi_services โ€” a comma separated list of PAM services that are allowed to try GSSAPI authentication using the pam_sss_gss.so module โœจ

To disable GSSAPI authentication, set this option to โ€œ-โ€ (dash).

Note: this option can also be set per-domain which overwrites the value in the [pam] section. It can also be set for a trusted domain which overwrites the value in the domain section. The way it just cascades down, iykyk ๐Ÿซถ

Example:

pam_gssapi_services = sudo, sudo-i

Default: - (GSSAPI authentication is disabled)

  • pam_gssapi_check_upn โ€” if True, SSSD will require that the Kerberos user principal that successfully authenticated through GSSAPI can be associated with the user who is being authenticated. Authentication will fail if the check fails. no cap, it just won't let you in ๐Ÿ’€

If False, every user that is able to obtain the required service ticket will be authenticated. (Whoever has the ticket gets the crown ๐Ÿ‘‘)

Note: this option can also be set per-domain which overwrites the value in the [pam] section. It can also be set for a trusted domain which overwrites the value in the domain section.

Default: True

  • pam_gssapi_indicators_map โ€” a comma separated list of authentication indicators required to be present in a Kerberos ticket to access a PAM service that is allowed to try GSSAPI authentication using the pam_sss_gss.so module ๐ŸŽŸ๏ธ

Each element of the list can be either an authentication indicator name or a pair โ€œ*service:indicator*โ€. Indicators not prefixed with the PAM service name will be required to access any PAM service configured to be used with pam_gssapi_services. A resulting list of indicators per PAM service is then checked against indicators in the Kerberos ticket during authentication by pam_sss_gss.so. Any indicator from the ticket that matches the resulting list of indicators for the PAM service would grant access. If none of the indicators in the list match, access will be denied. If the resulting list of indicators for the PAM service is empty, the check will not prevent the access. (Empty list = it's giving "no thoughts, head empty", and nobody gets blocked ๐Ÿ™ˆ)

To disable the GSSAPI authentication indicator check, set this option to โ€œ-โ€ (dash). To disable the check for a specific PAM service, add โ€œ*service:-*โ€.

Note: this option can also be set per-domain which overwrites the value in the [pam] section. It can also be set for a trusted domain which overwrites the value in the domain section.

Following authentication indicators are supported by IPA Kerberos deployments:

  • pkinit โ€” pre-authentication using X.509 certificates โ€” whether stored in files or on smart cards ๐Ÿชช
  • hardened โ€” SPAKE pre-authentication or any pre-authentication wrapped in a FAST channel ๐Ÿ”ฅ
  • radius โ€” pre-authentication with the help of a RADIUS server ๐Ÿ“ก
  • otp โ€” pre-authentication using integrated two-factor authentication (2FA or one-time password, OTP) in IPA ๐Ÿ”
  • idp โ€” pre-authentication using an external identity provider ๐ŸŒ

Example: to require access to SUDO services only for users which obtained their Kerberos tickets with a X.509 certificate pre-authentication (PKINIT), set

pam_gssapi_indicators_map = sudo:pkinit, sudo-i:pkinit

Default: not set (use of authentication indicators is not required)

  • pam_gssapi_indicators_apply โ€” a comma separated list of triples to assign additional information from the Kerberos ticket, e.g. a SID from the PAC, to authentication indicators ๐Ÿงฉ

Currently supported is:

  • SID:S-1-5-[domain]-[RID]:[authentication indicator]

Example: to assign a SID, which is e.g. set by Active Directory's Authentication Mechanism Assurance (AMA) if the AD user used a Smartcard for authentication, to the 'pkinit' authentication indicator use:

pam_gssapi_indicators_apply = SID:S-1-5-12345-23456-34567-4321:pkinit

Default: not set

  • pam_json_services (string) โ€” a comma separated list of PAM services which can handle the JSON protocol for selecting authentication mechanisms ๐ŸŒธ

To disable the JSON protocol, set this option to โ€œ-โ€ (dash).

Example:

pam_json_services = gdm-switchable-auth

Default: - (JSON protocol is disabled)

Note: 2-Factor Authentication (2FA) is not supported. If 2FA is required, do not activate the JSON protocol. Like, seriously, do not ๐Ÿ˜ญ

๐Ÿ’… SUDO configuration options ๐Ÿ’…

These options can be used to configure the sudo service. The detailed instructions for configuration of sudo(8) to work with sssd(8) are in the manual page sssd-sudo(5). Go read that one too, bestie, it's iconic ๐Ÿซถ

  • sudo_timed (bool) โ€” whether or not to evaluate the sudoNotBefore and sudoNotAfter attributes that implement time-dependent sudoers entries โฐ

Default: false

  • sudo_threshold (integer) โ€” maximum number of expired rules that can be refreshed at once. If the number of expired rules is below the threshold, those rules are refreshed with the โ€œrules refreshโ€ mechanism. If the threshold is exceeded, a โ€œfull refreshโ€ of sudo rules is triggered instead. This threshold number also applies to IPA sudo command and command group searches. (It's giving "small cleanup vs. full closet purge" ๐Ÿงน)

Default: 50


๐Ÿš— AUTOFS configuration options ๐Ÿš—

These options can be used to configure the autofs service.

  • autofs_negative_timeout (integer) โ€” specifies for how many seconds the autofs responder should negative cache hits (that is, queries for invalid map entries, like nonexistent ones) before asking the back end again ๐Ÿ™ˆ

Default: 15

Please note that the automounter only reads the master map on startup, so if any autofs-related changes are made to the sssd.conf, you typically also need to restart the automounter daemon after restarting the SSSD. It's a whole two-step situation, don't skip leg day ๐Ÿ’€


๐Ÿฆ‹ SSH configuration options ๐Ÿฆ‹

These options can be used to configure the SSH service.

  • ssh_use_certificate_keys (bool) โ€” if set to true, the sss_ssh_authorizedkeys will return ssh keys derived from the public key of X.509 certificates stored in the user entry as well. See sss_ssh_authorizedkeys(1) for details ๐Ÿ”‘

Default: true

  • ssh_use_certificate_matching_rules (string) โ€” by default the ssh responder will use all available certificate matching rules to filter the certificates so that ssh keys are only derived from the matching ones. With this option the used rules can be restricted with a comma separated list of mapping and matching rule names. All other rules will be ignored โœจ

There are two special key words all_rules and no_rules which will enable all or no rules, respectively. The latter means that no certificates will be filtered out and ssh keys will be generated from all valid certificates.

If no rules are configured, using all_rules will enable a default rule which enables all certificates suitable for client authentication. This is the same behavior as for the PAM responder if certificate authentication is enabled.

A non-existing rule name is considered an error. If as a result no rule is selected, all certificates will be ignored. (Yeah, all of them. Gone. Poof ๐Ÿซฅ)

Default: not set, equivalent to all_rules, all found rules or the default rule are used

  • ca_db (string) โ€” path to a storage of trusted CA certificates. The option is used to validate user certificates before deriving public ssh keys from them ๐ŸŽ€

Default:

  • /etc/sssd/pki/sssd_auth_ca_db.pem (path to a file with trusted CA certificates in PEM format)

๐ŸŒˆ PAC responder configuration options ๐ŸŒˆ

The PAC responder works together with the authorization data plugin for MIT Kerberos sssd_pac_plugin.so and a sub-domain provider. The plugin sends the PAC data during a GSSAPI authentication to the PAC responder. The sub-domain provider collects domain SID and ID ranges of the domain the client is joined to and of remote trusted domains from the local domain controller. If the PAC is decoded and evaluated, some of the following operations are done:

  • If the remote user does not exist in the cache, it is created. The UID is determined with the help of the SID, trusted domains will have UPGs and the GID will have the same value as the UID. The home directory is set based on the subdomain_homedir parameter. The shell will be empty by default, i.e. the system defaults are used, but can be overwritten with the default_shell parameter ๐Ÿ 
  • If there are SIDs of groups from domains sssd knows about, the user will be added to those groups ๐Ÿ‘ฏ

These options can be used to configure the PAC responder.

  • allowed_uids (string) โ€” specifies the comma-separated list of UID values or user names that are allowed to access the PAC responder. User names are resolved to UIDs at startup ๐Ÿ”

Default: 0, sssd (only root and SSSD service users are allowed to access the PAC responder)

Please note that defaults will be overwritten with this option. If you still want to allow the root and/or 'sssd' user to access the PAC responder, which would be the typical case, you have to add those to the list of allowed UIDs explicitly. Yes, it fully replaces the default โ€” it does not add to it, bestie ๐Ÿ˜ญ
  • pac_lifetime (integer) โ€” lifetime of the PAC entry in seconds. As long as the PAC is valid the PAC data can be used to determine the group memberships of a user โณ

Default: 300

  • pac_check (string) โ€” apply additional checks on the PAC of the Kerberos ticket which is available in Active Directory and FreeIPA domains, if configured. Please note that Kerberos ticket validation must be enabled to be able to check the PAC, i.e. the krb5_validate option must be set to 'True' which is the default for the IPA and AD provider. If krb5_validate is set to 'False' the PAC checks will be skipped ๐Ÿซฃ
Please note that the checks listed below only apply to PACs issued by Active Directory or recent versions of FreeIPA. PACs issued e.g. by a plain MIT Kerberos KDC will not contain the needed PAC data buffers to run the checks.

The following options can be used alone or in a comma-separated list:

  • no_check โ€” the PAC must not be present and even if it is present no additional checks will be done ๐Ÿ™…
  • pac_present โ€” the PAC must be present in the service ticket which SSSD will request with the help of the user's TGT. If the PAC is not available the authentication will fail ๐Ÿ’€
  • check_upn โ€” if the PAC is present check if the user principal name (UPN) information is consistent ๐Ÿ”
  • check_upn_allow_missing โ€” bestie, this one only makes sense with check_upn. It handles that specific situation where a UPN is set on the server-side but SSSD never actually reads it. The classic example? A FreeIPA domain where ldap_user_principal is pointed at an attribute name that doesn't even exist. People did that to work around issues in the handling of enterprise principalsโ€ฆ but that's been fixed for quite a while now, and FreeIPA handles enterprise principals just fine, so there's genuinely no need to set ldap_user_principal anymore. ๐Ÿ’…

Right now this option is set by default to avoid regressions in environments like that. If a UPN shows up in the PAC but not in SSSD's cache, you'll get a log message in the system log and in SSSD's debug log. To make that message go away, the move is to evaluate whether ldap_user_principal can be dropped. Can't drop it? Then removing check_upn skips the test entirely and dodges the log message. ๐ŸŽ€

  • upn_dns_info_present โ€” the PAC must contain the UPN-DNS-INFO buffer. Implies check_upn. โœจ
  • check_upn_dns_info_ex โ€” if the PAC is present and the extension to the UPN-DNS-INFO buffer is available, this checks whether the info inside that extension is consistent. ๐Ÿฆ‹
  • upn_dns_info_ex_present โ€” the PAC must contain the extension of the UPN-DNS-INFO buffer. Implies check_upn_dns_info_ex, upn_dns_info_present and check_upn. That's a whole implication chain, she's committed. ๐Ÿ˜ญ
  • Default: no_check (AD and IPA provider: check_upn, check_upn_allow_missing, check_upn_dns_info_ex)

๐ŸŽ€ Session recording configuration options ๐ŸŽ€

So session recording works together with tlog-rec-session(8) โ€” that's part of the tlog package โ€” to log what users actually see and type when they log in on a text terminal. Also peep sssd-session-recording(5) for the full picture. ๐Ÿ‘€

These are the options that configure it:

  • scope (string) โ€” one of these strings, which sets the scope of session recording:
    • "none" โ€” no users are recorded. ๐Ÿšซ
    • "some" โ€” users/groups listed in the users and groups options get recorded. โœจ
    • "all" โ€” everyone gets recorded. literally everyone. ๐Ÿ’€

Default: "none"

  • users (string) โ€” a comma-separated list of users who should have session recording enabled. Matches user names as returned by NSS โ€” meaning after the possible space replacement, case changes, etc. ๐Ÿ™ˆ

Default: Empty. Matches no users.

  • groups (string) โ€” a comma-separated list of groups; members of these groups get session recording enabled. Matches group names as returned by NSS โ€” again, after the possible space replacement, case changes, etc. ๐Ÿซถ
NOTE: using this option (like, having it set to anything at all) comes with a considerable performance cost, because every uncached request for a user requires retrieving and matching all the groups that user is a member of. Not me warning you twice. ๐Ÿ˜ญ

Default: Empty. Matches no groups.

  • exclude_users (string) โ€” a comma-separated list of users to be excluded from recording. Only applicable with scope=all. ๐Ÿšซ

Default: Empty. No users excluded.

  • exclude_groups (string) โ€” a comma-separated list of groups whose members should be excluded from recording. Only applicable with scope=all. ๐Ÿšซ
NOTE: same deal as above โ€” using this option (having it set to anything) has a considerable performance cost, because each uncached request for a user requires retrieving and matching the groups the user is a member of. ๐Ÿ’…

Default: Empty. No groups excluded.


๐Ÿ‘‘ DOMAIN SECTIONS ๐Ÿ‘‘

Okay so these configuration options can live in a domain configuration section โ€” that's a section called [domain/NAME] in case you were wondering. ๐Ÿ’–

  • enabled โ€” explicitly enable or disable the domain. If "true", the domain is always "enabled". If "false", the domain is always "disabled". If you don't set this option at all, the domain is enabled only if it's listed in the domains option in the [sssd] section. โญ
  • domain_type (string) โ€” tells SSSD whether the domain is meant for POSIX-aware clients like the Name Service Switch, or for applications that don't need POSIX data present or generated. Only objects from POSIX domains are available to the operating system interfaces and utilities. ๐Ÿฆ‹

Allowed values are "posix" and "application".

POSIX domains are reachable by all services. Application domains are only reachable from the InfoPipe responder (see sssd-ifp(5)) and the PAM responder. ๐Ÿ”ฅ

NOTE: application domains are currently well tested with id_provider=ldap only.

For an easy way to configure a non-POSIX domain, check out the "Application domains" section.

Default: posix

  • min_id,max_id (integer) โ€” the UID and GID limits for the domain. If the domain contains an entry outside these limits, it just gets ignored, bye. ๐Ÿ‘‹

For users, this affects the primary GID limit. The user won't be returned to NSS if either the UID or the primary GID is outside the range. For non-primary group memberships though, the ones in range get reported as expected. ๐Ÿ’…

These ID limits affect even saving entries to cache โ€” not just returning them by name or ID. Keep that in mind.

Default: 1 for min_id, 0 (no limit) for max_id

  • enumerate (bool) โ€” determines if a domain can be enumerated, i.e. whether the domain can list all the users and groups it contains. Note that you don't need to enable enumeration for secondary groups to be displayed, bestie. This parameter can be one of:

TRUE = users and groups are enumerated โœจ

FALSE = no enumerations for this domain ๐Ÿšซ

Default: FALSE

Enumerating a domain requires SSSD to download and store ALL user and group entries from the remote server. ๐Ÿ˜ญ

Note: enabling enumeration has a severe performance impact on SSSD while enumeration is running. It may take up to several minutes after SSSD startup to fully complete enumerations. During this time, individual requests for information go directly to LDAP โ€” though it may be slow, because of the heavy enumeration processing. Saving a large number of entries to cache after the enumeration completes might also be CPU intensive, since memberships have to be recomputed. This can lead to the sssd_be process becoming unresponsive or even restarted by the internal watchdog. ๐Ÿ’€

While the first enumeration is running, requests for the complete user or group lists may return no results until it completes. ๐Ÿซ 

Further, enabling enumeration may increase the time necessary to detect network disconnection, because longer timeouts are required to make sure enumeration lookups complete successfully. For more info, refer to the man pages for the specific id_provider in use.

For all the reasons above, enabling enumeration is not recommended, especially in large environments. fr fr, don't do it.

Note: the proxy provider is tested with open source modules like libnss_files and libnss_ldap. 3rd party modules must follow the documented behavior of nss modules to be used in this configuration.
  • entry_cache_timeout (integer) โ€” how many seconds should nss_sss consider entries valid before asking the backend again? โณ

The cache expiration timestamps are stored as attributes of individual objects in the cache. So changing the cache timeout only has effect for newly added or expired entries. You should run the sss_cache(8) tool to force refresh of entries that have already been cached. ๐Ÿ™ˆ

Default: 5400

  • entry_cache_user_timeout (integer) โ€” how many seconds should nss_sss consider user entries valid before asking the backend again? โœจ

Default: entry_cache_timeout

  • entry_cache_group_timeout (integer) โ€” how many seconds should nss_sss consider group entries valid before asking the backend again? ๐ŸŽ€

Default: entry_cache_timeout

  • entry_cache_netgroup_timeout (integer) โ€” how many seconds should nss_sss consider netgroup entries valid before asking the backend again? ๐ŸŒธ

Default: entry_cache_timeout

  • entry_cache_service_timeout (integer) โ€” how many seconds should nss_sss consider service entries valid before asking the backend again? ๐Ÿฆ‹

Default: entry_cache_timeout

  • entry_cache_resolver_timeout (integer) โ€” how many seconds should nss_sss consider hosts and networks entries valid before asking the backend again? ๐ŸŒˆ

Default: entry_cache_timeout

  • entry_cache_sudo_timeout (integer) โ€” how many seconds should sudo consider rules valid before asking the backend again? ๐Ÿ‘‘

Default: entry_cache_timeout

  • entry_cache_autofs_timeout (integer) โ€” how many seconds should the autofs service consider automounter maps valid before asking the backend again? ๐Ÿงš

Default: entry_cache_timeout

  • entry_cache_ssh_host_timeout (integer) โ€” how many seconds to keep a host ssh key after refresh. i.e. how long to cache the host key for. ๐Ÿ”‘

Default: entry_cache_timeout

  • entry_cache_computer_timeout (integer) โ€” how many seconds to keep the local computer entry before asking the backend again? ๐Ÿ’ป

Default: entry_cache_timeout

  • offline_timeout (integer) โ€” when SSSD switches to offline mode, the amount of time before it tries to go back online will increase based on how long it's been disconnected. By default SSSD uses incremental behaviour to calculate the delay between retries, so the wait time for a given retry will be longer than the wait time for the previous ones. After each unsuccessful attempt to go online, the new interval is recalculated like this: โฐ
new_delay = Minimum(old_delay * 2, offline_timeout_max) +
random[0...offline_timeout_random_offset]

The offline_timeout default value is 60. The offline_timeout_max default value is 3600. The offline_timeout_random_offset default value is 30. The end result is the number of seconds before the next retry. ๐Ÿซถ

Note that the maximum length of each interval is defined by offline_timeout_max (apart from the random part).

Default: 60

  • offline_timeout_max (integer) โ€” controls by how much the time between attempts to go online can be incremented following unsuccessful attempts to go online. ๐Ÿ“ˆ

A value of 0 disables the incrementing behaviour.

The value of this parameter should be set in correlation to the offline_timeout parameter value. ๐Ÿ’…

Okay so real talk about offline_timeout_max ๐Ÿ’… โ€” if you've got offline_timeout set to 60 (that's the default value, bestie), there is genuinely no point in setting offline_timeout_max to anything less than 120, because it will saturate instantly. Like, instantly instantly ๐Ÿ˜ญ. The general rule here should be to set offline_timeout_max to at least 4 times offline_timeout. Do the math, queen ๐Ÿ‘‘.

And even though a value between 0 and offline_timeout may be specified, it has the effect of overriding the offline_timeout value, so it's of little use. Lowkey pointless, no cap ๐Ÿ™ˆ.

Default: 3600

offline_timeout_random_offset (integer)

When SSSD is in offline mode it keeps probing backend servers in specified time intervals, and the vibe is:

new_delay = Minimum(old_delay * 2, offline_timeout_max) +
random[0...offline_timeout_random_offset]

This parameter controls the value of the random offset used for the above equation, bestie. Final random_offset value will be a random number in range:

[0 - offline_timeout_random_offset]

A value of 0 disables the random offset addition. Periodt โœจ.

Default: 30

refresh_expired_interval (integer)

Specifies how many seconds SSSD has to wait before triggering a background refresh task which will refresh all expired or nearly expired records โฐ.

The background refresh will process users, groups and netgroups in the cache. For users who have performed the initgroups (get group membership for user, typically ran at login) operation in the past, both the user entry and the group membership are updated. She's thorough like that ๐Ÿ’….

This option is automatically inherited for all trusted domains. iykyk.

You can consider setting this value to 3/4 * entry_cache_timeout. Cute little formula for you ๐ŸŽ€.

Cache entry will be refreshed by background task when 2/3 of cache timeout has already passed. If there are existing cached entries, the background task will refer to their original cache timeout values instead of current configuration value. This may lead to a situation in which background refresh task appears to not be working ๐Ÿ‘€ โ€” and ngl, that's done by design to improve offline mode operation and reuse of existing valid cache entries. To make this change instant the user may want to manually invalidate existing cache. Not a bug, it's a feature, bestie ๐Ÿฆ‹.

Default: 0 (disabled)

cache_credentials (bool)

Determines if user credentials are also cached in the local LDB cache. The cached credentials refer to passwords, which includes the first (long term) factor of two-factor authentication, not other authentication mechanisms. Passkey and Smartcard authentications are expected to work offline as long as a successful online authentication is recorded in the cache without additional configuration โœจ.

Take a note that while credentials are stored as a salted SHA512 hash, this still potentially poses some security risk in case an attacker manages to get access to a cache file (normally requires privileged access) and to break a password using brute force attack. Slay the hash, but likeโ€ฆ be aware ๐Ÿ’€.

Default: FALSE

cache_credentials_minimal_first_factor_length (int)

If 2-Factor-Authentication (2FA) is used and credentials should be saved, this value determines the minimal length the first authentication factor (long term password) must have to be saved as SHA512 hash into the cache ๐Ÿ”.

This should avoid that the short PINs of a PIN based 2FA scheme are saved in the cache, which would make them easy targets for brute-force attacks. We protect the girlies in here ๐Ÿ™.

Default: 8

account_cache_expiration (integer)

Number of days entries are left in cache after last successful login before being removed during a cleanup of the cache. 0 means keep forever โ™พ๏ธ. The value of this parameter must be greater than or equal to offline_credentials_expiration. Rude little constraint but okay ๐Ÿซถ.

Default: 0 (unlimited)

pwd_expiration_warning (integer)

Display a warning N days before the password expires โณ.

If zero is set, then this filter is not applied, i.e. if the expiration warning was received from backend server, it will automatically be displayed.

Please note that the backend server has to provide information about the expiration time of the password. If this information is missing, sssd cannot display a warning โ€” she's not a mind reader bestie ๐Ÿ˜ญ. Also an auth provider has to be configured for the backend.

Default: 7 (Kerberos), 0 (LDAP)

id_provider (string)

The identification provider used for the domain. Supported ID providers are:

  • "proxy" โ€” Support a legacy NSS provider.
  • "ldap" โ€” LDAP provider. See sssd-ldap(5) for more information on configuring LDAP.
  • "ipa" โ€” FreeIPA and Red Hat Identity Management provider. See sssd-ipa(5) for more information on configuring FreeIPA.
  • "ad" โ€” Active Directory provider. See sssd-ad(5) for more information on configuring Active Directory.
  • "idp" โ€” Provider for OAuth 2.0/OIDC based Identity Providers (IdP). See sssd-idp(5) for more information.

use_fully_qualified_names (bool)

Use the full name and domain (as formatted by the domain's full_name_format) as the user's login name reported to NSS.

If set to TRUE, all requests to this domain must use fully qualified names ๐Ÿ’ฏ. For example, if used in EXAMPLE domain that contains a "test" user, getent passwd test wouldn't find the user while getent passwd test@EXAMPLE would. The @ is doing main character energy there, fr fr.

NOTE: This option has no effect on netgroup lookups due to their tendency to include nested netgroups without qualified names. For netgroups, all domains will be searched when an unqualified name is requested. She's just built different ๐Ÿ’€.

Default: FALSE (TRUE for trusted domain/sub-domains or if default_domain_suffix is used)

ignore_group_members (bool)

Do not return group members for group lookups ๐Ÿšซ.

If set to TRUE, the group membership attribute is not requested from the ldap server, and group members are not returned when processing group lookup calls, such as getgrnam(3) or getgrgid(3). As an effect, "getent group $groupname" would return the requested group as if it was empty. Ghost group behavior, iconic ๐ŸŒธ.

Enabling this option can also make access provider checks for group membership significantly faster, especially for groups containing many members โšก โ€” speed is the vibe.

This option can be also set per subdomain or inherited via subdomain_inherit.

Default: FALSE

auth_provider (string)

The authentication provider used for the domain. Supported auth providers are:

  • "ldap" for native LDAP authentication. See sssd-ldap(5) for more information on configuring LDAP.
  • "krb5" for Kerberos authentication. See sssd-krb5(5) for more information on configuring Kerberos.
  • "ipa" โ€” FreeIPA and Red Hat Identity Management provider. See sssd-ipa(5) for more information on configuring FreeIPA.
  • "ad" โ€” Active Directory provider. See sssd-ad(5) for more information on configuring Active Directory.
  • "idp" โ€” Provider for OAuth 2.0/OIDC based authentication. See sssd-idp(5) for more information.
  • "proxy" for relaying authentication to some other PAM target.
  • "none" disables authentication explicitly.

Default: "id_provider" is used if it is set and can handle authentication requests.

access_provider (string)

The access control provider used for the domain. There are two built-in access providers (in addition to any included in installed backends). Internal special providers are:

  • "permit" โ€” always allow access โœ…
  • "deny" โ€” always deny access โŒ
  • "ldap" for native LDAP authentication. See sssd-ldap(5) for more information on configuring LDAP.
  • "ipa" โ€” FreeIPA and Red Hat Identity Management provider. See sssd-ipa(5) for more information on configuring FreeIPA.
  • "ad" โ€” Active Directory provider. See sssd-ad(5) for more information on configuring Active Directory.
  • "simple" โ€” access control based on access or deny lists. See sssd-simple(5) for more information on configuring the simple access module.
  • "krb5" โ€” .k5login based access control. See sssd-krb5(5) for more information on configuring Kerberos.
  • "proxy" for relaying access control to another PAM module.

Default: "permit"

chpass_provider (string)

The provider which should handle change password operations for the domain ๐Ÿ”‘. Supported change password providers are:

  • "ldap" to change a password stored in a LDAP server. See sssd-ldap(5) for more information on configuring LDAP.
  • "krb5" to change the Kerberos password. See sssd-krb5(5) for more information on configuring Kerberos.
  • "ipa" โ€” FreeIPA and Red Hat Identity Management provider. See sssd-ipa(5) for more information on configuring FreeIPA.
  • "ad" โ€” Active Directory provider. See sssd-ad(5) for more information on configuring Active Directory.
  • "proxy" for relaying password changes to some other PAM target.
  • "none" disallows password changes explicitly.

Default: "auth_provider" is used if it is set and can handle change password requests.

sudo_provider (string)

The SUDO provider used for the domain. Supported SUDO providers are:

  • "ldap" for rules stored in LDAP. See sssd-ldap(5) for more information on configuring LDAP.
  • "ipa" โ€” the same as "ldap" but with IPA default settings.
  • "ad" โ€” the same as "ldap" but with AD default settings.
  • "none" disables SUDO explicitly.

Default: The value of "id_provider" is used if it is set and can handle sudo requests.

The detailed instructions for configuration of sudo_provider are in the manual page sssd-sudo(5) ๐Ÿ“–. There are many configuration options that can be used to adjust the behavior. Please refer to "ldap_sudo_*" in sssd-ldap(5).

NOTE: Sudo rules are periodically downloaded in the background unless the sudo provider is explicitly disabled. Set sudo_provider = None to disable all sudo-related activity in SSSD if you do not want to use sudo with SSSD at all. Very "leave me alone" of you, and we respect it ๐Ÿ’….

selinux_provider (string)

The provider which should handle loading of selinux settings. Note that this provider will be called right after access provider ends ๐Ÿ. Supported selinux providers are:

  • "ipa" to load selinux settings from an IPA server. See sssd-ipa(5) for more information on configuring IPA.
  • "none" disallows fetching selinux settings explicitly.

Default: "id_provider" is used if it is set and can handle selinux loading requests.

subdomains_provider (string) ๐Ÿ’…

So this is the provider that handles fetching of subdomains, bestie. And like โ€” important note โ€” this value should always be the same as id_provider. Supported subdomain providers, let's go:

  • ipa โ€” loads a whole list of subdomains from an IPA server. Peep sssd-ipa(5) for the tea on configuring IPA.
  • ad โ€” loads a list of subdomains from an Active Directory server. sssd-ad(5) has the details on configuring the AD provider.
  • none โ€” disallows fetching subdomains explicitly. Like, no subdomains, periodt.

Default: the value of id_provider is used if it's set and can handle subdomain requests. Slay.


session_provider (string) ๐ŸŽ€

The provider that configures and manages user session related tasks. And ngl, the only user session task currently provided is the integration with Fleet Commander โ€” which works only with IPA. Supported session providers:

  • ipa โ€” allows performing user session related tasks.
  • none โ€” does not perform any kind of user session related tasks. Chill vibes, zero tasks.

Default: none.


autofs_provider (string) ๐Ÿฆ‹

The autofs provider used for the domain. Supported autofs providers are:

  • ldap โ€” loads maps stored in LDAP. See sssd-ldap(5) for how to configure LDAP.
  • ipa โ€” loads maps stored in an IPA server. sssd-ipa(5) has you covered.
  • ad โ€” loads maps stored in an AD server. sssd-ad(5) for the AD provider deets.
  • none โ€” disables autofs explicitly. Bye autofs.

Default: the value of id_provider is used if it's set and can handle autofs requests.


hostid_provider (string) ๐ŸŒธ

The provider used for retrieving host identity information. Supported hostid providers:

  • ipa โ€” loads host identity stored in an IPA server. sssd-ipa(5) for the IPA config lore.
  • none โ€” disables hostid explicitly.

Default: the value of id_provider is used if it's set and can handle hostid requests.


resolver_provider (string) ๐Ÿงš

The provider that handles hosts and networks lookups. Supported resolver providers:

  • proxy โ€” forwards lookups to another NSS library. See proxy_resolver_lib_name.
  • ldap โ€” fetches hosts and networks stored in LDAP. sssd-ldap(5), you know the drill.
  • ad โ€” fetches hosts and networks stored in AD. sssd-ad(5) for the AD setup.
  • none โ€” disallows fetching hosts and networks explicitly.

Default: the value of id_provider is used if it's set and can handle resolver requests.


re_expression (string) ๐Ÿ”ฅ

OK so this is a regular expression for this domain that describes how to parse the string containing user name and domain into these components. And here's the cute part โ€” the "domain" can match either the SSSD configuration domain name, or, in the case of IPA trust subdomains and Active Directory domains, the flat (NetBIOS) name of the domain. Iykyk.

Default: ^((?P<name>.+)@(?P<domain>[^@]*)|(?P<name>[^@]+))$ โ€” which allows two different styles for user names:

  • username
  • username@domain.name

Default for the AD and IPA provider: ^(((?P<domain>[^\\]+)\\(?P<name>.+))|((?P<name>.+)@(?P<domain>[^@]+))|((?P<name>[^@\\]+)))$ โ€” which allows three different styles for user names:

  • username
  • username@domain.name
  • domain\username

While the first two correspond to the general default, the third one is introduced to allow easy integration of users from Windows domains. Very demure, very Windows-friendly.

Heads up bestie ๐Ÿซถ โ€” the default re_expression uses the @ character as a separator between the name and the domain. As a result of this setting, the default does not accept the @ character in short names (as it is allowed in Windows group names). If a user wishes to use short names with @, they must create their own re_expression. No cap.

full_name_format (string) โญ

A printf(3)-compatible format that describes how to compose a fully qualified name from user name and domain name components. The following expansions are supported:

  • %1$s โ€” user name
  • %2$s โ€” domain name as specified in the SSSD config file.
  • %3$s โ€” domain flat name. Mostly usable for Active Directory domains, both directly configured or discovered via IPA trusts.

Default: %1$s@%2$s.


lookup_family_order (string) ๐ŸŒˆ

Gives you the ability to select the preferred address family to use when performing DNS lookups. Supported values:

  • ipv4_first: try looking up IPv4 address, if that fails, try IPv6.
  • ipv4_only: only attempt to resolve hostnames to IPv4 addresses.
  • ipv6_first: try looking up IPv6 address, if that fails, try IPv4.
  • ipv6_only: only attempt to resolve hostnames to IPv6 addresses.

Default: ipv4_first.


dns_resolver_server_timeout (integer) โณ

Defines the amount of time (in milliseconds) SSSD would try to talk to a DNS server before trying the next DNS server.

The AD provider will use this option for the CLDAP ping timeouts as well.

Please see the section "FAILOVER" for more information about the service resolution.

Default: 1000.


dns_resolver_op_timeout (integer) ๐Ÿ•

Defines the amount of time (in seconds) to wait to resolve a single DNS query (e.g. resolution of a hostname or an SRV record) before trying the next hostname or DNS discovery.

Please see the section "FAILOVER" for more information about the service resolution.

Default: 3.


dns_resolver_timeout (integer) โฐ

Defines the amount of time (in seconds) to wait for a reply from the internal fail over service before assuming that the service is unreachable. And if this timeout is reached, the domain will continue to operate in offline mode. ๐Ÿ’€

Please see the section "FAILOVER" for more information about the service resolution.

Default: 6.


dns_resolver_use_search_list (bool) ๐Ÿ“

Normally, the DNS resolver searches the domain list defined in the "search" directive from the resolv.conf file. Which can lead to delays in environments with improperly configured DNS. Not the vibe.

If fully qualified domain names (or _srv_) are used in the SSSD configuration, setting this option to FALSE can prevent unnecessary DNS lookups in such environments. Chef's kiss.

Default: TRUE.


dns_discovery_domain (string) ๐Ÿ”

If service discovery is used in the back end, this specifies the domain part of the service discovery DNS query.

Default: use the domain part of machine's hostname.


failover_primary_timeout (integer) ๐Ÿ‘‘

When no primary server is available, SSSD fails over to a backup server. This option defines the number of seconds SSSD waits before attempting to reconnect to the primary server.

Note: the minimum value is 31. Like, do not go below that, fr fr.

Default: 31.


override_gid (integer) ๐Ÿซถ

Override the primary GID value for all users in the domain with the specified value.

Default: not set (use the primary GID value retrieved from the identity provider).


case_sensitive (string) ๐Ÿ’–

Treat user and group names as case sensitive. Possible option values are:

  • True โ€” case sensitive. โš ๏ธ This value is invalid for the AD provider.
  • False โ€” case insensitive.
  • Preserving โ€” same as False (case insensitive), but does not lowercase names in the result of NSS operations. Note that name aliases (and in case of services also protocol names) are still lowercased in the output.
If you want to set this value for a trusted domain with the IPA provider, you need to set it on both the client and SSSD on the server. Both. Not one. Both. ๐Ÿ’…

This option can also be set per subdomain or inherited via subdomain_inherit.

Default: True (False for AD provider).


avoid_by_id_lookups (boolean) ๐Ÿ™ˆ

If this option is set to 'true', SSSD will try to avoid sending lookups by ID to the back end and will switch to a lookup by name if a cached object with a matching ID can be found.

This option can e.g. be used in cases where searches by ID are expensive on the server side because of missing indexes, or are not even possible, e.g. due to non-reversible POSIX id-mapping. Yeah. That.

Default: False (True for IdP provider).


subdomain_inherit (string) ๐Ÿงฌ

Specifies a list of configuration parameters that should be inherited by a subdomain. Please note that only selected parameters can be inherited. Currently the following options can be inherited:

  • ldap_search_timeout
  • ldap_network_timeout
  • ldap_opt_timeout
  • ldap_offline_timeout
  • ldap_purge_cache_timeout
  • ldap_purge_cache_offset
  • ldap_krb5_keytab (the value of krb5_keytab will be used if ldap_krb5_keytab is not set explicitly)
  • ldap_krb5_ticket_lifetime
  • ldap_connection_expire_timeout
  • ldap_connection_expire_offset
  • ldap_connection_idle_timeout
  • ldap_use_tokengroups
  • ldap_user_principal
  • ignore_group_members
  • auto_private_groups
  • case_sensitive

Example:

subdomain_inherit = ldap_purge_cache_timeout

Default: none.

Note: this option only works with the IPA and AD provider. Don't @ me.

subdomain_homedir (string) ๐Ÿ 

Use this homedir as the default value for all subdomains within this domain in IPA AD trust. See override_homedir for info about possible values. And in addition to those, the expansion below can only be used with subdomain_homedir:

  • %F โ€” flat (NetBIOS) name of a subdomain.

The value can be overridden by the override_homedir option.

Default: /home/%d/%u.


realmd_tags (string) ๐Ÿท๏ธ

Various tags stored by the realmd configuration service for this domain.


cached_auth_timeout (int) โฑ๏ธ

Specifies time in seconds since last successful online authentication for which a user will be authenticated using cached credentials while SSSD is in the online mode. If the credentials are incorrect, SSSD falls back to online authentication.

This option's value is inherited by all trusted domains. At the moment it is not possible to set a different value per trusted domain. Sorry bestie, that's just how it is.

Special value 0 implies that this feature is disabled.

Please note that if cached_auth_timeout is longer than pam_id_timeout, then the back end could be called to handle initgroups. ๐Ÿ˜ญ

Default: 0.

  • local_auth_policy (string) โ€” the policy for how local authentication goes down. So like, some backends (looking at you, LDAP and the proxy provider) only do password-based auth, period, while others can handle PKINIT-based Smartcard auth (AD, IPA), two-factor auth (IPA), or other methods against a central instance. By default, in those cases, auth only happens with the methods the backend actually supports. This option is your little override switch: it lets you turn on additional methods that get evaluated and checked locally. ๐Ÿ’…

There are three possible values for this bad boy: match, only, enable.

  • match โ€” matches offline and online states for Kerberos methods.
  • only โ€” straight up ignores the online methods and only offers the local ones.
  • enable โ€” lets you explicitly define the methods for local authentication. Like, enable:passkey only enables passkey for local auth. Multiple enable values should be comma-separated, like enable:passkey, enable:smartcard โœจ

Okay so here's the vibe check on which auth methods, if configured properly, are currently enabled or disabled per backend, with the default local_auth_policy of match:

  • local_auth_policy = match (default)
    • IPA โ†’ Passkey enabled, Smartcard enabled
    • AD โ†’ Passkey disabled, Smartcard enabled
    • LDAP โ†’ Passkey disabled, Smartcard disabled
Heads up bestie ๐Ÿซถ โ€” if local Smartcard authentication is enabled and a Smartcard is present, Smartcard authentication will be preferred over the auth methods the backend supports. Like, you'll get a PIN prompt instead of, say, a password prompt. Not a drill.

And here's a config example that lets local users authenticate locally using any enabled method (i.e. smartcard, passkey):

[domain/shadowutils]
id_provider = proxy
proxy_lib_name = files
auth_provider = none
local_auth_policy = only

Default: match

  • auto_private_groups (string) โ€” this one takes any of three available values, bestie:
    • true โ€” create the user's private group unconditionally from the user's UID number. The GID number is ignored in this case.
NOTE: because the GID number and the user private group are inferred from the UID number, it is not supported to have multiple entries with the same UID or GID number with this option. In other words, enabling this option enforces uniqueness across the ID space. No cap. ๐Ÿ”ฅ
  • false โ€” always use the user's primary GID number. The GID number must refer to a group object in the LDAP database.
  • hybrid โ€” a primary group is autogenerated for user entries whose UID and GID numbers have the same value and at the same time the GID number does not correspond to a real group object in LDAP. If the values are the same, but the primary GID in the user entry is also used by a group object, the primary GID of the user resolves to that group object.

If the UID and GID of a user are different, then the GID must correspond to a group entry, otherwise the GID is simply not resolvable.

This feature is useful for environments that wish to stop maintaining a separate group objects for the user private groups, but also wish to retain the existing user private groups.

Okay, defaults time ๐Ÿ‘‘ โ€” for the LDAP-based id providers (LDAP, IPA and AD), the default for the configured domain is typically False because the sources have the concept of a primary group. The IdP id provider is using True because IdPs typically do not have primary groups.

For subdomains, the default value is False for subdomains that use assigned POSIX IDs and True for subdomains that use automatic ID-mapping.

You can set auto_private_groups per subdomain in a subsection, like so:

[domain/forest.domain/sub.domain]
auto_private_groups = false

or globally for all subdomains in the main domain section using the subdomain_inherit option:

[domain/forest.domain]
subdomain_inherit = auto_private_groups
auto_private_groups = false

Options valid for proxy domains. ๐Ÿงš These ones are living their best life only in proxy land.

  • proxy_pam_target (string) โ€” the proxy target PAM proxies to.

Default: not set by default, you have to take an existing pam configuration or create a new one and add the service name here. As an alternative you can enable local authentication with the local_auth_policy option. ๐Ÿ’–

  • proxy_lib_name (string) โ€” the name of the NSS library to use in proxy domains. The NSS functions searched for in the library are in the form of _nss_$(libName)_$(function), for example _nss_files_getpwent.
  • proxy_resolver_lib_name (string) โ€” the name of the NSS library to use for hosts and networks lookups in proxy domains. The NSS functions searched for in the library are in the form of _nss_$(libName)_$(function), for example _nss_dns_gethostbyname2_r.
  • proxy_fast_alias (boolean) โ€” when a user or group is looked up by name in the proxy provider, a second lookup by ID is performed to "canonicalize" the name in case the requested name was an alias. Setting this option to true would cause SSSD to perform the ID lookup from cache for performance reasons. ๐Ÿ’จ

Default: false

  • proxy_max_children (integer) โ€” this option specifies the number of pre-forked proxy children. It's useful for high-load SSSD environments where sssd may run out of available child slots, which would cause some issues due to the requests being queued. ๐Ÿ˜ญ

Default: 10


๐Ÿฆ‹ Application domains ๐Ÿฆ‹

SSSD, with its D-Bus interface (see sssd-ifp(5)), is so appealing to applications as a gateway to an LDAP directory where users and groups are stored. But โ€” contrary to the traditional SSSD deployment where all users and groups either have POSIX attributes or those attributes can be inferred from the Windows SIDs โ€” in many cases the users and groups in the application support scenario have no POSIX attributes at all. ๐Ÿ™ˆ

So instead of setting a [domain/NAME] section, the administrator can set up an [application/NAME] section that internally represents a domain with type application, optionally inherits settings from a traditional SSSD domain.

Please note that the application domain must still be explicitly enabled in the domains parameter so that the lookup order between the application domain and its POSIX sibling domain is set correctly. ๐Ÿ”‘

Application domain parameters

  • inherit_from (string) โ€” the SSSD POSIX-type domain the application domain inherits all settings from. The application domain can moreover add its own settings to the application settings that augment or override the "sibling" domain settings.

Default: Not set

The following example illustrates the use of an application domain. In this setup, the POSIX domain is connected to an LDAP server and is used by the OS through the NSS responder. In addition, the application domain also requests the telephoneNumber attribute, stores it as the phone attribute in the cache and makes the phone attribute reachable through the D-Bus interface. โœจ

[sssd]
domains = appdom, posixdom

[ifp]
user_attributes = +phone

[domain/posixdom]
id_provider = ldap
ldap_uri = ldap://ldap.example.com
ldap_search_base = dc=example,dc=com

[application/appdom]
inherit_from = posixdom
ldap_user_extra_attrs = phone:telephoneNumber

๐ŸŒˆ TRUSTED DOMAIN SECTION ๐ŸŒˆ

Some options used in the domain section can also be used in the trusted domain section, that is, in a section called [domain/DOMAIN_NAME/TRUSTED_DOMAIN_NAME]. Where DOMAIN_NAME is the actual joined-to base domain. Please refer to examples below for explanation (iykyk). Currently supported options in the trusted domain section are:

  • ldap_search_base,
  • ldap_user_search_base,
  • ldap_group_search_base,
  • ldap_netgroup_search_base,
  • ldap_service_search_base,
  • ldap_sasl_mech,
  • ad_server,
  • ad_backup_server,
  • ad_site,
  • use_fully_qualified_names
  • pam_gssapi_services
  • pam_gssapi_check_upn

For more details about these options see their individual description in the manual page. ๐Ÿ’œ (and yeah, there's more coming, don't you dare close the tab ๐Ÿ˜ค)

๐Ÿ” CERTIFICATE MAPPING SECTION ๐Ÿ”

ok so bestie, if you want Smartcard and certificate authentication to work, SSSD has to be able to map certificates โ†’ users. That's the whole vibe. There are two ways to pull it off: either you slap the full certificate onto the user's LDAP object, or you use a local override.

Now, the full-certificate route is required if you want the Smartcard auth feature of SSH to work (peep sss_ssh_authorizedkeys(8) for the deets) โ€” but ngl, for the general case where local services just use PAM for authentication, doing that can be super cumbersome or straight-up impossible. ๐Ÿ˜ญ

So to make the mapping more flexible, mapping and matching rules got added to SSSD (check sss-certmap(5) for the full โœจloreโœจ).

A mapping and matching rule lives in its own little section, named like [certmap/DOMAIN_NAME/RULE_NAME]. Inside that section, these options are allowed:

  • matchrule (string) โ€” only certificates from the Smartcard that match this rule get processed; everything else is ignored, periodt. Default: KRB5:<EKU>clientAuth, i.e. only certificates that have the Extended Key Usage clientAuth.
  • maprule (string) โ€” defines how the user is found for a given certificate. Default:
    • LDAP:(userCertificate;binary={cert!bin}) for LDAP based providers like ldap, AD or ipa.
    • If maprule is not set and the provider is proxy, the RULE_NAME name is assumed to be the name of the matching user.
  • domains (string) โ€” comma separated list of domain names the rule should be applied to. By default a rule is only valid in the domain configured in sssd.conf. If the provider supports subdomains, you can use this option to add the rule to subdomains as well. Default: the configured domain in sssd.conf.
  • priority (integer) โ€” unsigned integer value defining the priority of the rule. The higher the number, the lower the priority. 0 stands for the highest priority while 4294967295 is the lowest. Default: the lowest priority.

๐Ÿ’ฌ PROMPTING CONFIGURATION SECTION ๐Ÿ’ฌ

So here's the setup: if this special file exists โ€” /var/lib/sss/pubconf/pam_preauth_available โ€” SSSD's PAM module pam_sss will ask SSSD to figure out which authentication methods are available for the user who's trying to log in. Based on the results, pam_sss prompts the user for the appropriate credentials. cute, right?

But ๐Ÿ’€ with the growing number of authentication methods, plus the possibility of multiple methods for a single user, the heuristic pam_sss uses to pick the prompting might not fit every use case. That's where the following options come in to give you better flexibility.

Each supported authentication method has its own config subsection under [prompting/...]. Currently there are:

[prompting/password]

to configure password prompting โ€” allowed options are:

  • password_prompt โ€” to change the string of the password prompt.

[prompting/2fa]

to configure two-factor authentication prompting โ€” allowed options are:

  • first_prompt โ€” to change the string of the prompt for the first factor.
  • second_prompt โ€” to change the string of the prompt for the second factor.
  • single_prompt โ€” boolean value; if True there will be only a single prompt using the value of first_prompt, where it is expected that both factors are entered as a single string. Please note that both factors have to be entered here, even if the second factor is optional. โš ๏ธ

If the second factor is optional and it should be possible to log in either only with the password or with both factors, two-step prompting has to be used.

Some clients, such as SSH with 'PasswordAuthentication yes', generate their own prompts and do not use prompts provided by SSSD or other PAM modules. Additionally, for SSH with PasswordAuthentication, if two-factor authentication is available, SSSD expects that the credentials entered by the user at the SSH password prompt will always be the two factors in a single string, even if two-factor authentication is optional. ๐Ÿ˜ฎโ€๐Ÿ’จ

[prompting/passkey]

to configure passkey authentication prompting โ€” allowed options are:

  • interactive โ€” boolean value; if True prompt a message and wait before testing the presence of a passkey device. Recommended if your device doesn't have a tactile trigger.
  • interactive_prompt โ€” to change the message of the interactive prompt.
  • touch โ€” boolean value; if True prompt a message to remind the user to touch the device.
  • touch_prompt โ€” to change the message of the touch prompt.

[prompting/oauth2]

to configure OAuth2 authentication prompting โ€” allowed options are:

  • interactive โ€” boolean value; if True prompt a message after asking the user to authenticate, and wait before requesting the access token. If False, make sure to set the idp_request_timeout sufficiently high, to give the user time to authenticate. Default: true
  • interactive_prompt โ€” to change the message of the interactive prompt.

And yes, you can add a subsection for specific PAM services, e.g. [prompting/password/sshd], to individually change the prompting for that service. slay. ๐Ÿ’…


๐ŸŒŸ EXAMPLES ๐ŸŒŸ

1. The following example shows a typical SSSD config. It does not describe configuration of the domains themselves โ€” refer to documentation on configuring domains for more details.

[sssd]
domains = LDAP
services = nss, pam

[nss]
filter_groups = root
filter_users = root

[pam]

[domain/LDAP]
id_provider = ldap
ldap_uri = ldap://ldap.example.com
ldap_search_base = dc=example,dc=com

auth_provider = krb5
krb5_server = kerberos.example.com
krb5_realm = EXAMPLE.COM
cache_credentials = true

min_id = 10000
max_id = 20000
enumerate = False

2. The following example shows configuration of IPA AD trust where the AD forest consists of two domains in a parent-child structure. Suppose IPA domain (ipa.com) has trust with AD domain (ad.com). ad.com has child domain (child.ad.com). To enable shortnames in the child domain the following configuration should be used.

[domain/ipa.com/child.ad.com]
use_fully_qualified_names = false

3. The following example shows the configuration of a certificate mapping rule. It is valid for the configured domain my.domain and additionally for the subdomains your.domain and uses the full certificate in the search filter.

[certmap/my.domain/rule_name]
matchrule = <ISSUER>^CN=My-CA,DC=MY,DC=DOMAIN$
maprule = (userCertificate;binary={cert!bin})
domains = my.domain, your.domain
priority = 10

๐Ÿ‘€ SEE ALSO ๐Ÿ‘€

sssd(8), sssd.conf(5), sssd-ldap(5), sssd-ldap-attributes(5), sssd-krb5(5), sssd-simple(5), sssd-ipa(5), sssd-ad(5), sssd-idp(5), sssd-sudo(5), sssd-session-recording(5), sss_cache(8), sss_debuglevel(8), sss_obfuscate(8), sss_seed(8), sssd_krb5_locator_plugin(8), sss_ssh_authorizedkeys(1), sss_ssh_knownhosts(1), sssd-ifp(5), pam_sss(8). sss_rpcidmapd(5) sssd-systemtap(5)


๐Ÿซถ AUTHORS ๐Ÿซถ

The SSSD upstream โ€” https://github.com/SSSD/sssd/


and that's the whole page bestie, you made it to the end ๐ŸŽ€โœจ this edition is from SSSD, dated 09/08/2026, and it's the manual for SSSD.CONF(5) โ€” go forth and configure, you absolute icon ๐Ÿ‘‘๐Ÿ’–

๐Ÿ“ฆ where this page comes from