Bug 1263752

Summary: pam_systemd times out when logging in an SSSD user for the first time
Product: [Fedora] Fedora Reporter: Stephen Gallagher <sgallagh>
Component: systemdAssignee: systemd-maint
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: jhrozek, johannbg, jsynacek, lnykryn, lslebodn, msekleta, s, systemd-maint, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-22 18:15:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stephen Gallagher 2015-09-16 15:15:04 UTC
Description of problem:
The first time a new 

Version-Release number of selected component (if applicable):
systemd-222-2.fc23.x86_64

How reproducible:
Every time

Steps to Reproduce:
1. Install a fresh copy of Fedora 23 Server
2. Join it to a FreeIPA domain[1]
3. Attempt to log in with a domain account via SSH

Actual results:
A long (25s) delay before logging in the first time. Subsequent logins are much faster.

Expected results:
No delay before logging in.

Additional info:
Sep 16 11:04:55 client1.rc1.beta.f23.lan systemd[1]: Starting Session 6 of user test2.f23.lan.
Sep 16 11:04:55 client1.rc1.beta.f23.lan audit[26912]: USER_ACCT pid=26912 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_
Sep 16 11:04:56 client1.rc1.beta.f23.lan audit[707]: USER_AVC pid=707 uid=81 auid=4294967295 ses=4294967295 subj=system_u:system_r:system_db
                                                      exe="/usr/bin/dbus-daemon" sauid=81 hostname=? addr=? terminal=?'
Sep 16 11:05:20 client1.rc1.beta.f23.lan sshd[26896]: pam_systemd(sshd:session): Failed to create session: Connection timed out
Sep 16 11:05:20 client1.rc1.beta.f23.lan sshd[26896]: pam_unix(sshd:session): session opened for user test2.f23.lan by (uid=0)


[1] https://fedoraproject.org/wiki/QA:Testcase_realmd_join_sssd

Comment 1 Stephen Gallagher 2016-09-22 18:15:20 UTC
As far as I can tell, this was fixed somewhere in the interrim.