<html><body><p>Now it works:<br><br>First I edited <font size="4">/etc/login.defs</font> <font size="4">UID_MIN to 500</font><br><br><font color="#222222">Then I ran </font><font color="#222222" face="Consolas">"authconfig --update" </font>to make the change(s) to login.defs active.<br><br>After that, users with uids >=500 were able to login again. <br><br>In our case we have both system users (application) and "long term employees, user account predates LDAP" with such low ids.<br><br>Chris<br><br><img width="16" height="16" src="cid:1__=8FBBF591DFAAA91D8f9e8a93df938690918c8FB@" border="0" alt="Inactive hide details for Christopher Lamb---19.11.2015 11:20:51---Hi Sumit Thanks, I too have found /etc/login.defs"><font color="#424282">Christopher Lamb---19.11.2015 11:20:51---Hi Sumit Thanks, I too have found /etc/login.defs</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">Sumit Bose <sbose@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 11:20</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 Sumit<br><br>Thanks, I too have found /etc/login.defs<br></font><u><font size="4" color="#0000FF"><br></font></u><a href="https://fedoraproject.org/wiki/Features/1000SystemAccounts"><u><font size="4" color="#0000FF">https://fedoraproject.org/wiki/Features/1000SystemAccounts</font></u></a><font size="4"><br><br>I have changed the UID_MIN to 500, and rebooted, but it seems to have no effect.<br><br>Reading between the lines in the link above, it looks like this value may have to be set pre-install.<br><br>Maybe I need to do something else to change the value?<br><br>Chris<br><br><br><br><br><br></font><img src="cid:1__=8FBBF591DFAAA91D8f9e8a93df938690918c8FB@" width="16" height="16" alt="Inactive hide details for Sumit Bose ---19.11.2015 10:38:49---On Thu, Nov 19, 2015 at 10:25:02AM +0100, Christopher Lamb wrote:"><font size="4" color="#424282">Sumit Bose ---19.11.2015 10:38:49---On Thu, Nov 19, 2015 at 10:25:02AM +0100, Christopher Lamb wrote: > HI</font><font size="4"><br></font><font color="#5F5F5F"><br>From: </font>Sumit Bose <sbose@redhat.com><font color="#5F5F5F"><br>To: </font>Christopher Lamb/Switzerland/IBM@IBMCH<font color="#5F5F5F"><br>Cc: </font>Jakub Hrozek <jhrozek@redhat.com>, freeipa-users@redhat.com<font color="#5F5F5F"><br>Date: </font>19.11.2015 10:38<font color="#5F5F5F"><br>Subject: </font>Re: [Freeipa-users] Invalid UID in persistent keyring name while getting default cache. on OEL 7.1<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 Thu, Nov 19, 2015 at 10:25:02AM +0100, Christopher Lamb wrote:<br>> 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<br>> wrong kernel".<br>> <br>> The second issue, that some ipa users cannot log on (but mine can), is<br>> (probably) unrelated.<br>> <br>> The clue was my point below "no obvious horrible error".<br>> <br>> That led my to look in /var/log/secure, where I found the following:<br>> <br>> Nov 19 09:06:59 my-ipahost sshd[6075]: pam_unix(sshd:auth): authentication<br>> failure; logname= uid=0 euid=0 tty=ssh ruser=<br>> rhost=xxxxxx.my-domain.xx.domain.com  user=bimbo<br>> Nov 19 09:06:59 my-ipahost sshd[6075]: pam_succeed_if(sshd:auth):<br>> requirement "uid >= 1000" not met by user "bimbo"<br>> Nov 19 09:07:01 my-ipahost sshd[6075]: Failed password for bimbo from<br>> 9.164.17.110 port 49332 ssh2<br>> <br>> Both my user, and an additional test user this morning have uids > 1000,<br>> and can successfully login -->OK<br>> <br>> The 2 other users I tested with yesterday (one application user, and one<br>> 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 /<br>> hidden.<br><br>The '1000' is written by authconfig into the pam configuration. Afaik<br>authconfig uses the UID_MIN form /etc/login.defs here.<br><br>HTH<br><br>bye,<br>Sumit<br><br>> <br>> Cheers<br>> <br>> Chris<br>> <br>> <br>> <br>> <br>> <br>> From: Christopher Lamb/Switzerland/IBM@IBMCH<br>> To: Jakub Hrozek <jhrozek@redhat.com><br>> Cc: freeipa-users@redhat.com<br>> Date: 19.11.2015 10:05<br>> Subject: Re: [Freeipa-users] Invalid UID in persistent keyring name<br>>             while getting default cache. on OEL 7.1<br>> Sent by: freeipa-users-bounces@redhat.com<br>> <br>> <br>> <br>> Hi Jakub<br>> <br>> I have restarted sssd with debug_level=6<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>> <br>> (See attached file: sssd_logs.zip)<br>> <br>> <br>> Inactive hide details for Jakub Hrozek ---18.11.2015 19:30:29---On Wed, Nov<br>> 18, 2015 at 04:34:39PM +0100, Christopher Lamb wrotJakub Hrozek<br>> ---18.11.2015 19:30:29---On Wed, Nov 18, 2015 at 04:34:39PM +0100,<br>> Christopher Lamb wrote: ><br>> <br>> From: Jakub Hrozek <jhrozek@redhat.com><br>> To: freeipa-users@redhat.com<br>> Date: 18.11.2015 19:30<br>> Subject: Re: [Freeipa-users] Invalid UID in persistent keyring name while<br>> getting default cache. on OEL 7.1<br>> Sent by: freeipa-users-bounces@redhat.com<br>> <br>> <br>> <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<br>> 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). --><br>> 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<br>> 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<br>> 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<br>> 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:<br>> </font></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<br>> <br>> [attachment "sssd_logs.zip" deleted by Christopher Lamb/Switzerland/IBM] --<br>> <br>> Manage your subscription for the Freeipa-users mailing list:<br>> </font></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<br>> <br><br><br><br>> -- <br>> Manage your subscription for the Freeipa-users mailing list:<br>> </font></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<br></font></tt><font size="4"><br><br><br></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>