<div dir="ltr"><div><div><div><div>Thanks Sumit.<br><br></div>The version of sssd is 1.12.2-58.el7_1.17<br><br></div>I do not have any AD trusts defined, I suppose I should not see those messages.<br><br></div>Thanks again.<br><br></div>Guillem<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 9 October 2015 at 14:06, Sumit Bose <span dir="ltr"><<a href="mailto:sbose@redhat.com" target="_blank">sbose@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Wed, Oct 07, 2015 at 01:23:06PM +0200, Guillem Liarte wrote:<br>
> Sumit,<br>
><br>
> Thanks for you reply.<br>
><br>
> Ues, I have debug enabled: With level 5 I see that here is where it spends<br>
> most of its time:<br>
><br>
> (Wed Oct 7 13:14:17 2015) [sssd[be[#.com]]] [be_get_account_info]<br>
> (0x0200): Got request for [0x1][1][name=testuser]<br>
> (Wed Oct 7 13:14:17 2015) [sssd[be[#.com]]]<br>
> [sdap_idmap_domain_has_algorithmic_mapping] (0x0080): Could not parse<br>
> domain SID from [(null)]<br>
> (Wed Oct 7 13:14:17 2015) [sssd[be[#.com]]]<br>
> [sdap_idmap_domain_has_algorithmic_mapping] (0x0080): Could not parse<br>
> domain SID from [(null)]<br>
> (Wed Oct 7 13:14:17 2015) [sssd[be[#.com]]] [acctinfo_callback] (0x0100):<br>
> Request processed. Returned 0,0,Success<br>
> (Wed Oct 7 13:14:17 2015) [sssd[be[#.com]]] [be_get_account_info]<br>
> (0x0200): Got request for [0x1][1][name=testuser]<br>
> (Wed Oct 7 13:14:17 2015) [sssd[be[#.com]]]<br>
> [sdap_idmap_domain_has_algorithmic_mapping] (0x0080): Could not parse<br>
> domain SID from [(null)]<br>
> (Wed Oct 7 13:14:17 2015) [sssd[be[#.com]]]<br>
> [sdap_idmap_domain_has_algorithmic_mapping] (0x0080): Could not parse<br>
> domain SID from [(null)]<br>
> (Wed Oct 7 13:14:17 2015) [sssd[be[#.com]]] [acctinfo_callback] (0x0100):<br>
> Request processed. Returned 0,0,Success<br>
> (Wed Oct 7 13:14:17 2015) [sssd[be[#.com]]] [be_get_account_info]<br>
> (0x0200): Got request for [0x3][1][name=testuser]<br>
> (Wed Oct 7 13:14:17 2015) [sssd[be[#.com]]]<br>
> [sdap_idmap_domain_has_algorithmic_mapping] (0x0080): Could not parse<br>
> domain SID from [(null)]<br>
> (Wed Oct 7 13:14:17 2015) [sssd[be[#.com]]]<br>
> [sdap_idmap_domain_has_algorithmic_mapping] (0x0080): Could not parse<br>
> domain SID from [(null)]<br>
> (Wed Oct 7 13:14:17 2015) [sssd[be[#.com]]]<br>
> [sdap_idmap_domain_has_algorithmic_mapping] (0x0080): Could not parse<br>
> domain SID from [(null)]<br>
> (Wed Oct 7 13:14:17 2015) [sssd[be[#.com]]]<br>
> [sdap_idmap_domain_has_algorithmic_mapping] (0x0080): Could not parse<br>
> domain SID from [(null)]<br>
> (Wed Oct 7 13:14:17 2015) [sssd[be[#.com]]]<br>
> [sdap_idmap_domain_has_algorithmic_mapping] (0x0080): Could not parse<br>
> domain SID from [(null)]<br>
> (Wed Oct 7 13:14:17 2015) [sssd[be[#.com]]]<br>
> [sdap_idmap_domain_has_algorithmic_mapping] (0x0080): Could not parse<br>
> domain SID from [(null)]<br>
> (Wed Oct 7 13:14:18 2015) [sssd[be[#.com]]] [acctinfo_callback] (0x0100):<br>
> Request processed. Returned 0,0,Success<br>
><br>
> Note that I removed the real domain name, also to make it a short line.<br>
><br>
><br>
> After reading in this pots:<br>
><br>
> <a href="https://www.centos.org/forums/viewtopic.php?f=47&t=53652" rel="noreferrer" target="_blank">https://www.centos.org/forums/viewtopic.php?f=47&t=53652</a><br>
><br>
> I actually saw that setting selinux_provider = none improved things quite a<br>
> lot.<br>
<br>
</div></div>Which SSSD version are you using, this issue was tracked by<br>
<a href="https://fedorahosted.org/sssd/ticket/2624" rel="noreferrer" target="_blank">https://fedorahosted.org/sssd/ticket/2624</a> and should be fixed in recent<br>
versions of SSSD.<br>
<span class=""><br>
><br>
> Still, what is this message:<br>
><br>
> [sdap_idmap_domain_has_algorithmic_mapping] (0x0080): Could not parse<br>
> domain SID from [(null)<br>
<br>
</span>Those are harmless. If you have trust enabled with with AD we have to<br>
figure out if the POSIX UID for a user should be calculated based in the<br>
SID or taken from a suitable LDAP attribute from AD. Since this happen<br>
in the common code for user lookup it is executed for IPA users as well.<br>
But I agree that this message is annoying and created<br>
<a href="https://fedorahosted.org/sssd/ticket/2830" rel="noreferrer" target="_blank">https://fedorahosted.org/sssd/ticket/2830</a> to suppress it for IPA users.<br>
<br>
bye,<br>
Sumit<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> ?<br>
><br>
> Regards,<br>
><br>
> Guillem<br>
><br>
> On 7 October 2015 at 12:35, Sumit Bose <<a href="mailto:sbose@redhat.com">sbose@redhat.com</a>> wrote:<br>
><br>
> > On Wed, Oct 07, 2015 at 12:07:08PM +0200, Guillem Liarte wrote:<br>
> > > All,<br>
> > ><br>
> > > I have an IPA 4.1 installation that works perfectly. We just suffer from<br>
> > > slow logins ( this is also slow in other operations such invoking SUDO )<br>
> > ><br>
> > > IPA user:<br>
> > ><br>
> > > 1st. login: 30 seconds<br>
> > > 2nd login: 8 seconds<br>
> > > 3rd login: 6.5 seconds<br>
> > > 4rth login: 20 seconds<br>
> > ><br>
> > > Local user:<br>
> > ><br>
> > > Consistently under 2 seconds<br>
> > ><br>
> > > In SSH have tried:<br>
> > ><br>
> > > Setting UseDNS to no<br>
> > > Setting GSSAPIAuthentication to no<br>
> > ><br>
> > > I have tried various things that would work on an slow SSH, with no<br>
> > effect.<br>
> > > In fact, local users have no problem.<br>
> > ><br>
> > > DNS both forward and reverse works well, works fast and gives consistent<br>
> > > results. That is no the issue.<br>
> > ><br>
> > > While trying to find out more about the issue, I see that after the<br>
> > client<br>
> > > has connected, it spends most of the time here:<br>
> > ><br>
> > > [...]<br>
> > > debug2: input_userauth_pk_ok: fp<br>
> > > e9:45:2d:52:97:f7:16:5b:2d:83:2f:2e:d9:xx:xx:xx<br>
> > > debug3: sign_and_send_pubkey: RSA<br>
> > > e9:45:2d:52:97:f7:16:5b:2d:83:2f:2e:d9:xx:xx:xx<br>
> > > debug1: Authentication succeeded (publickey).<br>
> > > [...]<br>
> > ><br>
> > > At first I though it might be the key retrival from the IPA service, but<br>
> > it<br>
> > > is actually quite fast:<br>
> > ><br>
> > > time /usr/bin/sss_ssh_authorizedkeys testuser<br>
> > > real 0m0.209s<br>
> > ><br>
> > > We have all the configration files just as they were after installing the<br>
> > > ipa-client. The only modification was made to sshd_config as these two<br>
> > > lines:<br>
> > ><br>
> > > AuthorizedKeysCommand /usr/bin/sss_ssh_authorizedkeys<br>
> > > AuthorizedKeysCommandUser nobody<br>
> > ><br>
> > > I also tried removing the _srv_ in the ipa server line in sssd.conf, but<br>
> > > that did not make any difference either.<br>
> > ><br>
> > > So, in brief:<br>
> > ><br>
> > > - SSH is fast for local users<br>
> > > - authorized keys get retrieved quickly<br>
> > > - no DNS issues.<br>
> > > - IPA users take from 6 to 30 seconds to login (and also to perform sudo<br>
> > > invocations)<br>
> > > - While watching ssh logins, for ipa users, it takes a long time to pass<br>
> > > these two:<br>
> > ><br>
> > > - input_userauth_pk_ok<br>
> > > - sign_and_send_pubkey<br>
> > ><br>
> > > Could someone give me an idea of what to try next?<br>
> ><br>
> > Please check the SSSD logs especailly the ones for the domain. You might<br>
> > need to increase the debug_level, please see<br>
> > <a href="https://fedorahosted.org/sssd/wiki/Troubleshooting" rel="noreferrer" target="_blank">https://fedorahosted.org/sssd/wiki/Troubleshooting</a> for details.<br>
> ><br>
> > bye,<br>
> > Sumit<br>
> ><br>
> > ><br>
> > > Thanks!<br>
> ><br>
> > > --<br>
> > > Manage your subscription for the Freeipa-users mailing list:<br>
> > > <a href="https://www.redhat.com/mailman/listinfo/freeipa-users" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/freeipa-users</a><br>
> > > Go to <a href="http://freeipa.org" rel="noreferrer" target="_blank">http://freeipa.org</a> for more info on the project<br>
> ><br>
> ><br>
</div></div></blockquote></div><br></div>