PAM_SSS(8)
๐ PAM_SSS(8) โ the SSSD manual page, but make it make sense โจ
okay bestie, so this is pam_sss(8) from the SSSD Manual pages and honestly? it's kind of the main character of the whole auth stack. sit down, grab a matcha ๐, and let's get into it.
๐ธ NAME ๐ธ
pam_sss โ the PAM module for SSSD, no cap ๐
โจ SYNOPSIS โจ
pam_sss.so [quiet] [forward_pass] [use_first_pass] [use_authtok]
[retry=N] [ignore_unknown_user] [ignore_authinfo_unavail]
[domains=X] [allow_missing_name] [prompt_always]
[try_cert_auth] [require_cert_auth] [allow_chauthtok_by_root]
๐ฆ DESCRIPTION ๐ฆ
So pam_sss.so is literally the PAM interface to the System Security Services daemon (SSSD, iykyk). Like, PAM talks, SSSD listens, everyone's authenticated ๐ซถ.
Errors and results? They get logged through syslog(3) with the LOG_AUTHPRIV facility. That's it, that's the vibe.
๐ OPTIONS ๐
quietโ shhh ๐คซ. Suppresses log messages for unknown users. Not me making your logs quiet for the mystery-user situation.forward_passโ ifforward_passis set, the entered password gets put on the stack so other PAM modules can use it. Sharing is caring, periodt.use_first_passโ this argument literally forces the module to use a previously stacked module's password and it will never prompt the user. And if no password is available or the password isn't appropriate? user gets denied access. harsh but fair ๐.use_authtokโ when password changing, this enforces that the module sets the new password to the one provided by a previously stacked password module. teamwork, bestie ๐ซถ.retry=Nโ if specified, the user gets asked anotherNtimes for a password if authentication fails. Default is0.
ok lowkey important: this option might not work as expected if the application calling PAM handles the user dialog on its own. A typical example issshdwithPasswordAuthentication. so likeโฆ don't come for pam_sss when sshd ate your retries ๐.
ignore_unknown_userโ if this is specified and the user does not exist, the PAM module returnsPAM_IGNORE. That makes the PAM framework ignore this module. bye bestie ๐.ignore_authinfo_unavailโ says the PAM module should returnPAM_IGNOREif it can't contact the SSSD daemon. Again, PAM framework then ignores this module. it's giving "if you can't reach me, don't worry about me" โจ.domainsโ lets the administrator restrict which domains a particular PAM service is allowed to authenticate against. Format is a comma-separated list of SSSD domain names, as specified in thesssd.conffile.
NOTE: if this is used for a service not running as root user โ e.g. a web-server โ it must be used in conjunction with thepam_trusted_usersandpam_public_domainsoptions. Please see thesssd.conf(5)manual page for more info on these two PAM responder options. this is not a drill ๐ฅ.
allow_missing_nameโ the main purpose of this option is to let SSSD determine the user name based on additional information, e.g. the certificate from a Smartcard ๐ซ.
The current use case are login managers which can monitor a Smartcard reader for card events. In case a Smartcard is inserted, the login manager will call a PAM stack which includes a line like
auth sufficient pam_sss.so allow_missing_name
In this case SSSD will try to determine the user name based on the content of the Smartcard, returns it to pam_sss which will finally put it on the PAM stack. iconic behavior honestly ๐.
prompt_alwaysโ always prompt the user for credentials. With this option, credentials requested by other PAM modules โ typically a password โ will be ignored andpam_ssswill prompt for credentials again. Based on the pre-auth reply by SSSD,pam_sssmight prompt for a password, a Smartcard PIN or other credentials. like it's not gonna take anyone else's word for it ๐ .try_cert_authโ try to use certificate based authentication, i.e. authentication with a Smartcard or similar devices. If a Smartcard is available and the service is allowed for Smartcard authentication, the user will be prompted for a PIN and the certificate based authentication will continue โจ.
If no Smartcard is available or certificate based authentication is not allowed for the current service, PAM_AUTHINFO_UNAVAIL is returned.
require_cert_authโ do certificate based authentication, i.e. authentication with a Smartcard or similar devices. If a Smartcard is not available the user will be prompted to insert one ๐ซ. SSSD will wait for a Smartcard until the timeout defined byp11_wait_for_card_timeoutpassed โ please seesssd.conf(5)for details.
If no Smartcard is available after the timeout, or certificate based authentication is not allowed for the current service, PAM_AUTHINFO_UNAVAIL is returned.
allow_chauthtok_by_rootโ by default, thechauthtokPAM action will short-circuit to returningPAM_SUCCESSwhenpam_sss.sois invoked by root user ๐ญ. This option disables that behavior, allowing you to change auth tokens when running as root. root gets to actually do the thing now ๐ซถ.
๐ MODULE TYPES PROVIDED ๐
All module types โ account, auth, password and session โ are provided. every single one. slay ๐
.
If SSSD's PAM responder is not running โ e.g. if the PAM responder socket is not available โ pam_sss will return PAM_USER_UNKNOWN when called as account module, to avoid issues with users from other sources during access control. it's giving considerate ๐ง.
๐ RETURN VALUES ๐
PAM_SUCCESSโ the PAM operation finished successfully. we love a happy ending โจ.PAM_USER_UNKNOWNโ the user is not known to the authentication service, or the SSSD's PAM responder is not running. mystery user fr.PAM_AUTH_ERRโ authentication failure. Also, could be returned when there is a problem with getting the certificate. ๐.PAM_PERM_DENIEDโ permission denied. The SSSD log files may contain additional information about the error. check the logs bestie ๐.PAM_IGNOREโ see optionsignore_unknown_userandignore_authinfo_unavail. told you it was a whole thing.PAM_AUTHTOK_ERRโ unable to obtain the new authentication token. Also, could be returned when the user authenticates with certificates and multiple certificates are available, but the installed version of GDM does not support selection from multiple certificates. GDM catching strays ๐ญ.PAM_AUTHINFO_UNAVAILโ unable to access the authentication information. This might be due to a network or hardware failure ๐.PAM_BUF_ERRโ a memory error occurred. Also, could be returned when optionsuse_first_passoruse_authtokwere set, but no password was found from the previously stacked PAM module. the stack was empty, it's giving awkward ๐ซ .PAM_SYSTEM_ERRโ a system error occurred. The SSSD log files may contain additional information about the error.PAM_CRED_ERRโ unable to set the credentials of the user.PAM_CRED_INSUFFICIENTโ the application does not have sufficient credentials to authenticate the user. For example, missing PIN during smartcard authentication or missing factor during two-factor authentication. one factor is not enough, we need the whole fit ๐.PAM_SERVICE_ERRโ error in service module.PAM_NEW_AUTHTOK_REQDโ the user's authentication token has expired. time for a new one โฐ.PAM_ACCT_EXPIREDโ the user account has expired.PAM_SESSION_ERRโ unable to fetch IPA Desktop Profile rules or user info.PAM_CRED_UNAVAILโ unable to retrieve Kerberos user credentials.PAM_NO_MODULE_DATAโ no authentication method was found by Kerberos. This might happen if the user has a Smartcard assigned but thepkintplugin is not available on the client. (yes,pkint, exactly like that, we don't edit the source ๐ซถ)PAM_CONV_ERRโ conversation failure. the chat did not go well ๐.PAM_AUTHTOK_LOCK_BUSYโ no KDC suitable for password change is available.PAM_ABORTโ unknown PAM call.PAM_MODULE_UNKNOWNโ unsupported PAM task or command.PAM_BAD_ITEMโ the authentication module cannot handle Smartcard credentials. it said no thank you ๐.
๐ FILES ๐
If a password reset by root fails because the corresponding SSSD provider does not support password resets, an individual message can be displayed. This message can e.g. contain instructions about how to reset a password ๐.
The message is read from the file pam_sss_pw_reset_message.LOC where LOC stands for a locale string returned by setlocale(3). If there is no matching file, the content of pam_sss_pw_reset_message.txt is displayed.
security check bestie ๐: root must be the owner of the files, and only root may have read and write permissions, while all other users must have only read permissions.
These files are searched in the directory /etc/sssd/customize/DOMAIN_NAME/. If no matching file is present, a generic message is displayed. fallback queen behavior ๐
.
๐ฅ 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)
(yes that's a lot of reading. go off, you've got this ๐)
โญ AUTHORS โญ
The SSSD upstream โ https://github.com/SSSD/sssd/
and that's the whole page bestie ๐ โ brought to you by SSSD, dated 06/09/2026, under the name PAM_SSS(8). go forth and authenticate responsibly, ily ๐โจ๐ฆ
๐ฆ where this page comes from
- arch rolling: sssd 2.13.1-1 ยท GPL-3.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms