Warning: Permanently added '10.88.14.113' (ED25519) to the list of known hosts.
##### КЛИЕНТ: na7eethi.alt.domain (Пт 06 ноя 2026 14:29:12 MSK)

===== rpm -q пакетов =====
pam-config-1.10.0-alt1.noarch
pam-config-control-1.10.0-alt1.noarch
pam-1.7.3-alt1.x86_64
sssd-2.13.1-alt2.x86_64
alterator-auth-0.56-alt1.x86_64
lightdm-1.32.0-alt15.x86_64
task-auth-ldap-sssd-0.56-alt1.x86_64

===== system-auth status =====
krb5 dc=alt,dc=domain ldaps://ldap.alt.domain

===== systemctl is-active sssd =====
active

===== getent passwd testuser =====
testuser:*:5000:5000:testuser testuser:/home/testuser:/bin/bash

===== grep ^testuser: /etc/passwd =====
(нет в /etc/passwd)

===== sssctl domain-status alt.domain =====
Online status: Online

Active servers:
KERBEROS: not connected
LDAP: ldap.alt.domain

Discovered KERBEROS servers:
- alt.domain

Discovered LDAP servers:
- ldap.alt.domain


===== /etc/pam.d/system-check-localuser =====
#%PAM-1.0
#
# Authentication router (Systemd dynamic mode).
# Directs authentication flow, accounting for systemd dynamic users (not in
# /etc/passwd). UID < 65536 is the threshold for systemd dynamic users.
#
# Process:
# 1. Check if user exists locally (pam_localuser.so).
#    - Exists: Proceed to the next line in parent stack -> 'local-only' substack.
#    - Does not exist: Continue to step 2.
#
# 2. Check UID >= 65536 (pam_succeed_if.so).
#    - UID >= 65536: Skip two lines in parent -> 'method-only' substack.
#    - UID < 65536: Proceed to next line in parent -> 'local-only' substack.
#
# Summary for parent stack:
#
# Condition                                      | Path in Parent Stack
# ---------------------------------------------------------------------
# User exists in /etc/passwd                     | -> 'local-only'
# User not in /etc/passwd, UID >= 65536          | -> 'method-only'
# User not in /etc/passwd, UID < 65536 (dynamic) | -> 'local-only'

auth		[success=1 perm_denied=ignore default=die]	pam_localuser.so
auth		[success=2 auth_err=ignore default=bad]	pam_succeed_if.so uid >= 65536 quiet

account		[success=1 perm_denied=ignore default=die]	pam_localuser.so
account		[success=2 auth_err=ignore default=bad]	pam_succeed_if.so uid >= 65536 quiet

password	[success=1 perm_denied=ignore default=die]	pam_localuser.so
password	[success=2 auth_err=ignore default=bad]	pam_succeed_if.so uid >= 65536 quiet

session		[success=1 perm_denied=ignore default=die]	pam_localuser.so
session		[success=2 auth_err=ignore default=bad]	pam_succeed_if.so uid >= 65536 quiet

===== /etc/pam.d/system-auth =====
#%PAM-1.0
#
# Hybrid authentication with conditional branching.
# The 'system-check-localuser' module determines the authentication path:
# - Local users (in /etc/passwd) are processed by the 'local-only' substack.
# - Non-local users with UID meeting a specific threshold are processed by the
#   'sss-only' substack.
# - Other cases are handled according to the router's mode (legacy or systemd).
#
# Post-condition stack summary:
#
# Condition                        | Action                    | Rule
# ----------------------------------------------------------------------------
# Local user (or treated as local) | Proceeds to the next line | 'local-only'
# Specific non-local user          | Jumps over two lines      | 'method-only'
# Critical failure (default=bad)   | Marks the stack as failed | 'local-only'
# Termination (default=die)        | Entire authentication stack terminates.

auth		include		system-check-localuser
auth		substack	system-auth-local-only
auth		[default=1]	pam_permit.so
auth		substack	system-auth-sss-only
auth		substack	system-auth-common

account		include		system-check-localuser
account		substack	system-auth-local-only
account		[default=1]	pam_permit.so
account		substack	system-auth-sss-only
account		substack	system-auth-common

password	include		system-check-localuser
password	substack	system-auth-local-only
password	[default=1]	pam_permit.so
password	substack	system-auth-sss-only
password	substack	system-auth-common

session		include		system-check-localuser
session		substack	system-auth-local-only
session		[default=1]	pam_permit.so
session		substack	system-auth-sss-only
session		substack	system-auth-common

===== /etc/pam.d/system-auth-sss-only =====
#%PAM-1.0
auth		required	pam_sss.so	forward_pass
account		required	pam_sss.so
password	required	pam_sss.so
session		required	pam_sss.so

===== /etc/pam.d/system-auth-local-only =====
#%PAM-1.0
auth		required	pam_tcb.so shadow fork nullok
account		required	pam_tcb.so shadow fork
password	required	pam_passwdqc.so config=/etc/passwdqc.conf
password	required	pam_tcb.so use_authtok shadow fork nullok write_to=tcb
session		required	pam_tcb.so

===== /etc/nsswitch.conf (passwd) =====
passwd: files sss

===== sssd.conf [domain/alt.domain] =====
[domain/alt.domain]
id_provider = ldap
auth_provider = krb5
chpass_provider = krb5
ldap_uri = ldaps://ldap.alt.domain
ldap_tls_reqcert = never
ldap_search_base = dc=alt,dc=domain
ldap_user_object_class = posixAccount
ldap_group_object_class = posixGroup
ldap_user_home_directory = homeDirectory
ldap_force_upper_case_realm = true
krb5_server = alt.domain
krb5_realm = ALT.DOMAIN
krb5_renew_interval = 1h
debug_level = 0

===== journalctl -u lightdm (поиск testuser/pam) =====
ноя 06 12:52:30 na7eethi.alt.domain lightdm[1407]: pam_succeed_if(lightdm:auth): requirement "user ingroup nopasswdlogin" not met by user "testuser"
ноя 06 12:52:31 na7eethi.alt.domain lightdm[1407]: pam_tcb(lightdm:auth): Authentication failed for UNKNOWN USER from (uid=0)
ноя 06 12:53:46 na7eethi.alt.domain lightdm[1406]: pam_succeed_if(lightdm:auth): requirement "user ingroup nopasswdlogin" not met by user "testuser"
ноя 06 12:53:47 na7eethi.alt.domain lightdm[1416]: pam_tcb(lightdm:auth): Credentials for user testuser unknown
ноя 06 12:53:47 na7eethi.alt.domain lightdm[1406]: pam_tcb(lightdm:auth): Authentication failed for UNKNOWN USER from (uid=0)

===== /var/log/sssd/sssd_pam.log (tail 40) =====
(2026-11-06 12:51:58): [pam] [server_setup] (0x3f7c0): Starting with debug level = 0x0070
(2026-11-06 12:51:58): [pam] [server_loop] (0x3f7c0): Entering main loop under uid=975 (euid=975) : gid=948 (egid=948) with SECBIT_KEEP_CAPS = 0 and following capabilities:
         CAP_DAC_READ_SEARCH: effective =  0 , permitted = *1*, inheritable =  0 , bounding = *1*
(2026-11-06 12:52:03): [pam] [orderly_shutdown] (0x3f7c0): SIGTERM: killing children
(2026-11-06 12:52:03): [pam] [orderly_shutdown] (0x3f7c0): Shutting down (status = 0)
(2026-11-06 12:52:16): [pam] [server_setup] (0x3f7c0): Starting with debug level = 0x0070
(2026-11-06 12:52:16): [pam] [server_loop] (0x3f7c0): Entering main loop under uid=975 (euid=975) : gid=948 (egid=948) with SECBIT_KEEP_CAPS = 0 and following capabilities:
         CAP_DAC_READ_SEARCH: effective =  0 , permitted = *1*, inheritable =  0 , bounding = *1*
(2026-11-06 12:53:14): [pam] [orderly_shutdown] (0x3f7c0): SIGTERM: killing children
(2026-11-06 12:53:14): [pam] [orderly_shutdown] (0x3f7c0): Shutting down (status = 0)
(2026-11-06 12:53:25): [pam] [server_setup] (0x3f7c0): Starting with debug level = 0x0070
(2026-11-06 12:53:25): [pam] [server_loop] (0x3f7c0): Entering main loop under uid=975 (euid=975) : gid=948 (egid=948) with SECBIT_KEEP_CAPS = 0 and following capabilities:
         CAP_DAC_READ_SEARCH: effective =  0 , permitted = *1*, inheritable =  0 , bounding = *1*

===== /var/log/sssd/sssd.log (tail 20) =====
[sssd] [main] (0x3f7c0): Started under uid=975 (euid=975) : gid=948 (egid=948) with SECBIT_KEEP_CAPS = 0 and following capabilities:
   (nothing)
[sssd] [sss_ini_call_validators] (0x0020): [rule/allowed_sssd_options]: Attribute 'config_file_version' is not allowed in section 'sssd'. Check for typos.
(2026-11-06 12:52:16): [sssd] [server_setup] (0x3f7c0): Starting with debug level = 0x0070
(2026-11-06 12:52:16): [sssd] [server_loop] (0x3f7c0): Entering main loop under uid=975 (euid=975) : gid=948 (egid=948) with SECBIT_KEEP_CAPS = 0 and following capabilities:
   (nothing)
(2026-11-06 12:53:14): [sssd] [monitor_quit_signal] (0x3f7c0): Monitor received Завершено: terminating children
(2026-11-06 12:53:14): [sssd] [monitor_quit] (0x3f7c0): Returned with: 0
(2026-11-06 12:53:14): [sssd] [monitor_quit] (0x3f7c0): Terminating [pam][994]
(2026-11-06 12:53:14): [sssd] [monitor_quit] (0x3f7c0): Child [pam] exited gracefully
(2026-11-06 12:53:14): [sssd] [monitor_quit] (0x3f7c0): Terminating [nss][993]
(2026-11-06 12:53:14): [sssd] [monitor_quit] (0x3f7c0): Child [nss] exited gracefully
(2026-11-06 12:53:14): [sssd] [monitor_quit] (0x3f7c0): Terminating [alt.domain][934]
(2026-11-06 12:53:14): [sssd] [monitor_quit] (0x3f7c0): Child [alt.domain] exited gracefully
[sssd] [main] (0x3f7c0): Started under uid=975 (euid=975) : gid=948 (egid=948) with SECBIT_KEEP_CAPS = 0 and following capabilities:
   (nothing)
[sssd] [sss_ini_call_validators] (0x0020): [rule/allowed_sssd_options]: Attribute 'config_file_version' is not allowed in section 'sssd'. Check for typos.
(2026-11-06 12:53:25): [sssd] [server_setup] (0x3f7c0): Starting with debug level = 0x0070
(2026-11-06 12:53:25): [sssd] [server_loop] (0x3f7c0): Entering main loop under uid=975 (euid=975) : gid=948 (egid=948) with SECBIT_KEEP_CAPS = 0 and following capabilities:
   (nothing)
