<html><body><p>HI<br><br>The plot thickens. I think I actually have 2 issues:<br><br>The first issue is that in the title of this thread, and was caused by "the wrong kernel".<br><br>The second issue, that some ipa users cannot log on (but mine can), is (probably) unrelated.<br><br>The clue was my point below "no obvious horrible error".<br><br>That led my to look in <font face="Menlo-Regular">/var/log/secure</font>, where I found the following:<br><br><font face="Menlo-Regular">Nov 19 09:06:59 my-ipahost sshd[6075]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=xxxxxx.my-domain.xx.domain.com  user=bimbo</font><br><font face="Menlo-Regular">Nov 19 09:06:59 my-ipahost sshd[6075]: pam_succeed_if(sshd:auth): requirement "uid >= 1000" not met by user "bimbo"</font><br><font face="Menlo-Regular">Nov 19 09:07:01 my-ipahost sshd[6075]: Failed password for bimbo from 9.164.17.110 port 49332 ssh2</font><br><br>Both my user, and an additional test user this morning have uids > 1000, and can successfully login -->OK<br><br>The 2 other users I tested with yesterday (one application user, and one real user) have ids < 1000, and therefore (on this host) cannot logon.<br><br>Now I need to google further to find where this rule is configured / hidden.<br><br>Cheers<br><br>Chris<br><br><br><br><img width="16" height="16" src="cid:1__=8FBBF591DFA082448f9e8a93df938690918c8FB@" border="0" alt="Inactive hide details for Christopher Lamb---19.11.2015 10:05:23---Hi Jakub I have restarted sssd with debug_level=6"><font color="#424282">Christopher Lamb---19.11.2015 10:05:23---Hi Jakub I have restarted sssd with debug_level=6</font><br><br><font size="2" color="#5F5F5F">From:        </font><font size="2">Christopher Lamb/Switzerland/IBM@IBMCH</font><br><font size="2" color="#5F5F5F">To:        </font><font size="2">Jakub Hrozek <jhrozek@redhat.com></font><br><font size="2" color="#5F5F5F">Cc:        </font><font size="2">freeipa-users@redhat.com</font><br><font size="2" color="#5F5F5F">Date:        </font><font size="2">19.11.2015 10:05</font><br><font size="2" color="#5F5F5F">Subject:        </font><font size="2">Re: [Freeipa-users] Invalid UID in persistent keyring name while getting default cache. on OEL 7.1</font><br><font size="2" color="#5F5F5F">Sent by:        </font><font size="2">freeipa-users-bounces@redhat.com</font><br><hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br><br><br><font size="4">Hi Jakub<br><br>I have restarted sssd with </font><font size="4" face="Menlo-Regular">debug_level=6</font><font size="4"><br><br>Then I made one (failed) attempt to login via ssh with the user "bimbo".<br><br>Logs, anonymised are attached.<br><br>To my untrained eyes, nothing shouts "horrible error" to me.<br><br>Chris<br></font><i><font size="4"><br>(See attached file: sssd_logs.zip)</font></i><font size="4"><br><br><br></font><img src="cid:1__=8FBBF591DFA082448f9e8a93df938690918c8FB@" width="16" height="16" alt="Inactive hide details for Jakub Hrozek ---18.11.2015 19:30:29---On Wed, Nov 18, 2015 at 04:34:39PM +0100, Christopher Lamb wrot"><font size="4" color="#424282">Jakub Hrozek ---18.11.2015 19:30:29---On Wed, Nov 18, 2015 at 04:34:39PM +0100, Christopher Lamb wrote: ></font><font size="4"><br></font><font color="#5F5F5F"><br>From: </font>Jakub Hrozek <jhrozek@redhat.com><font color="#5F5F5F"><br>To: </font>freeipa-users@redhat.com<font color="#5F5F5F"><br>Date: </font>18.11.2015 19:30<font color="#5F5F5F"><br>Subject: </font>Re: [Freeipa-users] Invalid UID in persistent keyring name while getting default cache. on OEL 7.1<font color="#5F5F5F"><br>Sent by: </font>freeipa-users-bounces@redhat.com<font size="4"><br></font><hr width="100%" size="2" align="left" noshade><font size="4"><br><br></font><tt><font size="4"><br>On Wed, Nov 18, 2015 at 04:34:39PM +0100, Christopher Lamb wrote:<br>> <br>> I have a newly installed OEL 7.1 server (7.0 DVD, then yum updated to 7.1)<br>> The ipa-client is installed, making this server an ipa host.<br>> <br>> <br>> <br>> > getent passwd xxxx<br>> <br>> is successful for ipa users.  -->OK<br>> <br>> However I cannot log on to the host with ipa users (direct or ssh). -->NOT<br>> <br>> OK<br>> <br>> <br>> <br>> When logged on as root (local user), I can “su -“ to my ipa user. -->OK<br>> <br>> <br>> <br>> "> systemctl status sssd" and "> kinit"<br>> <br>> both show:<br>> <br>> “Invalid UID in persistent keyring name while getting default cache.”<br>> <br>> <br>> <br>> Having googled with this error, I saw some indications that it could be<br>> <br>> related to the kernel.<br>> <br>> </font></tt><a href="https://bugzilla.redhat.com/show_bug.cgi?id=1017683"><tt><u><font size="4" color="#0000FF">https://bugzilla.redhat.com/show_bug.cgi?id=1017683</font></u></tt></a><tt><font size="4"><br>> <br>> </font></tt><a href="https://bugzilla.redhat.com/show_bug.cgi?id=1029110"><tt><u><font size="4" color="#0000FF">https://bugzilla.redhat.com/show_bug.cgi?id=1029110</font></u></tt></a><tt><font size="4"><br>> <br>> <br>> <br>> For a fresh OEL install, the default kernel is the uek version. "Aha" I<br>> <br>> thought, let’s change back to the standard RHEL kernel.<br>> <br>> After a reboot with the RHEL kernel, I was still not able to log in with my<br>> <br>> ipa user.<br>> <br>> <br>> <br>> I then logged on as root, and changed to my ipa user via su.<br>> <br>> > klist -l<br>> <br>> produced:<br>> <br>> KEYRING:persistent:93397:krb_cache_76B9lf2 (Expired)<br><br>I'm surprised you had any ccache at all, because login as root bypasses<br>PAM.<br><br>But in general, if you login with sssd and the cache is expired a long<br>time ago (1970), that means sssd logged you in offline and the ccache is<br>a placeholder for when sssd switches to online mode.<br><br>> <br>> <br>> <br>> I therefore deleted the key:<br>> <br>> > kdestroy -A<br>> <br>> Then I stopped the sssd service, and cleared the cache in /var/lib/sss/db/,<br>> <br>> then restarted sssd<br>> <br>> <br>> <br>> After that I was now able to log on with my ipa user (both direct and via<br>> <br>> ssh).<br>> <br>> <br>> <br>> However I cannot get any other ipa users to logon to this host!  --> NOT OK<br>> <br>> The same users can successfully logon to other ipa hosts in the same<br>> <br>> domain.<br>> <br>> <br>> <br>> My ipa user was the one used to enroll the host.<br>> <br>> <br>> <br>> Any ideas?<br><br>Not without logs, see:<br>   </font></tt><a href="https://fedorahosted.org/sssd/wiki/Troubleshooting"><tt><u><font size="4" color="#0000FF">https://fedorahosted.org/sssd/wiki/Troubleshooting</font></u></tt></a><tt><font size="4"><br><br>-- <br>Manage your subscription for the Freeipa-users mailing list:</font></tt><tt><u><font size="4" color="#0000FF"><br></font></u></tt><a href="https://www.redhat.com/mailman/listinfo/freeipa-users"><tt><u><font size="4" color="#0000FF">https://www.redhat.com/mailman/listinfo/freeipa-users</font></u></tt></a><tt><font size="4"><br>Go to </font></tt><a href="http://freeipa.org/"><tt><u><font size="4" color="#0000FF">http://freeipa.org</font></u></tt></a><tt><font size="4"> for more info on the project</font></tt><font size="4"><br><br>[attachment "sssd_logs.zip" deleted by Christopher Lamb/Switzerland/IBM] </font><tt>-- <br>Manage your subscription for the Freeipa-users mailing list:<br></tt><tt><a href="https://www.redhat.com/mailman/listinfo/freeipa-users">https://www.redhat.com/mailman/listinfo/freeipa-users</a></tt><tt><br>Go to </tt><tt><a href="http://freeipa.org">http://freeipa.org</a></tt><tt> for more info on the project</tt><br><br><BR>
</body></html>