<div dir="ltr"><div><div><div><div><div><div><div><div>Sumit,<br><br></div>Thanks for you reply.<br><br></div>Ues, I have debug enabled: With level 5 I see that here is where it spends most of its time:<br><br>(Wed Oct 7 13:14:17 2015) [sssd[be[#.com]]] [be_get_account_info] (0x0200): Got request for [0x1][1][name=testuser]<br>(Wed Oct 7 13:14:17 2015) [sssd[be[#.com]]] [sdap_idmap_domain_has_algorithmic_mapping] (0x0080): Could not parse domain SID from [(null)]<br>(Wed Oct 7 13:14:17 2015) [sssd[be[#.com]]] [sdap_idmap_domain_has_algorithmic_mapping] (0x0080): Could not parse domain SID from [(null)]<br>(Wed Oct 7 13:14:17 2015) [sssd[be[#.com]]] [acctinfo_callback] (0x0100): Request processed. Returned 0,0,Success<br>(Wed Oct 7 13:14:17 2015) [sssd[be[#.com]]] [be_get_account_info] (0x0200): Got request for [0x1][1][name=testuser]<br>(Wed Oct 7 13:14:17 2015) [sssd[be[#.com]]] [sdap_idmap_domain_has_algorithmic_mapping] (0x0080): Could not parse domain SID from [(null)]<br>(Wed Oct 7 13:14:17 2015) [sssd[be[#.com]]] [sdap_idmap_domain_has_algorithmic_mapping] (0x0080): Could not parse domain SID from [(null)]<br>(Wed Oct 7 13:14:17 2015) [sssd[be[#.com]]] [acctinfo_callback] (0x0100): Request processed. Returned 0,0,Success<br>(Wed Oct 7 13:14:17 2015) [sssd[be[#.com]]] [be_get_account_info] (0x0200): Got request for [0x3][1][name=testuser]<br>(Wed Oct 7 13:14:17 2015) [sssd[be[#.com]]] [sdap_idmap_domain_has_algorithmic_mapping] (0x0080): Could not parse domain SID from [(null)]<br>(Wed Oct 7 13:14:17 2015) [sssd[be[#.com]]] [sdap_idmap_domain_has_algorithmic_mapping] (0x0080): Could not parse domain SID from [(null)]<br>(Wed Oct 7 13:14:17 2015) [sssd[be[#.com]]] [sdap_idmap_domain_has_algorithmic_mapping] (0x0080): Could not parse domain SID from [(null)]<br>(Wed Oct 7 13:14:17 2015) [sssd[be[#.com]]] [sdap_idmap_domain_has_algorithmic_mapping] (0x0080): Could not parse domain SID from [(null)]<br>(Wed Oct 7 13:14:17 2015) [sssd[be[#.com]]] [sdap_idmap_domain_has_algorithmic_mapping] (0x0080): Could not parse domain SID from [(null)]<br>(Wed Oct 7 13:14:17 2015) [sssd[be[#.com]]] [sdap_idmap_domain_has_algorithmic_mapping] (0x0080): Could not parse domain SID from [(null)]<br>(Wed Oct 7 13:14:18 2015) [sssd[be[#.com]]] [acctinfo_callback] (0x0100): Request processed. Returned 0,0,Success<br><br></div>Note that I removed the real domain name, also to make it a short line.<br><br><br></div>After reading in this pots:<br><br><a href="https://www.centos.org/forums/viewtopic.php?f=47&t=53652">https://www.centos.org/forums/viewtopic.php?f=47&t=53652</a><br><br></div>I actually saw that setting selinux_provider = none improved things quite a lot.<br><br></div>Still, what is this message:<br><br> [sdap_idmap_domain_has_algorithmic_mapping] (0x0080): Could not parse domain SID from [(null)<br><br>?<br><br></div>Regards,<br></div><br>Guillem<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 7 October 2015 at 12:35, 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 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 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 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 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>
</div></div>> - input_userauth_pk_ok<br>
> - sign_and_send_pubkey<br>
<span class="">><br>
> Could someone give me an idea of what to try next?<br>
<br>
</span>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>
<span class="HOEnZb"><font color="#888888"><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>
</font></span></blockquote></div><br></div>