View previous topic :: View next topic |
Author |
Message |
chuck_theobald n00b
Joined: 08 Apr 2005 Posts: 36
|
Posted: Fri May 19, 2006 5:49 pm Post subject: Odd su problem |
|
|
Hi,
I have an LDAP authentication server for users and groups, which I suspect may be involved in the issue I am having with su to root. On newer (2005.1-r1) installations, whenever I try "su -", I get a 15-second delay before the root prompt shows up. If I enter the incorrect password, the rejection comes in about 2-3 seconds. The OpenLDAP log is unhelpful in diagnosing this, and an strace on the su command does not reveal the cause of this delay. Is anyone else experiencing this problem? Has anyone found a fix?
The relevant emerges for my installations include nss_ldap, pam_ldap, openldap, and appropriate modifications to /etc/nsswitch.conf and /etc/pam.d/system-auth.
Thanks,
Chuck |
|
Back to top |
|
|
smerf l33t
Joined: 06 Nov 2004 Posts: 778 Location: Polska
|
Posted: Fri May 19, 2006 9:56 pm Post subject: |
|
|
maybe try setting bigger idle_timelimit (i.e. 36000) in /etc/ldap.conf _________________ Microsoft is not the answer, Microsoft is the question, the answer is no. |
|
Back to top |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5947
|
Posted: Sat May 20, 2006 10:00 am Post subject: |
|
|
is your ldap server under considerable load? i have seen auths slow to a crawl if the ldap server is chugging. try renicing slapd to -19.
bunder _________________
Neddyseagoon wrote: | The problem with leaving is that you can only do it once and it reduces your influence. |
banned from #gentoo since sept 2017 |
|
Back to top |
|
|
smerf l33t
Joined: 06 Nov 2004 Posts: 778 Location: Polska
|
Posted: Sat May 20, 2006 7:56 pm Post subject: |
|
|
hmm, for me -19 is somewhat too low, ldap may slow your system down, -10 sounds better (for me at least) _________________ Microsoft is not the answer, Microsoft is the question, the answer is no. |
|
Back to top |
|
|
chuck_theobald n00b
Joined: 08 Apr 2005 Posts: 36
|
Posted: Sun May 21, 2006 9:59 pm Post subject: su - problem |
|
|
Hi,
Thank you for the suggestion, but setting the timeout value had no effect on the slow login response. My LDAP server is very low load and responds quickly to other auth requests, it is only with su that I see the problem. Also, this occurs only for "su -", if I su to another user, the response time is normal. Could this be related to the LDAP server definition for "root"?
Regards,
Chuck |
|
Back to top |
|
|
smerf l33t
Joined: 06 Nov 2004 Posts: 778 Location: Polska
|
Posted: Mon May 22, 2006 6:38 am Post subject: |
|
|
do you have root inside ldap? is this necessary? _________________ Microsoft is not the answer, Microsoft is the question, the answer is no. |
|
Back to top |
|
|
chuck_theobald n00b
Joined: 08 Apr 2005 Posts: 36
|
Posted: Mon May 22, 2006 3:03 pm Post subject: |
|
|
root is the cn assigned to the Netbios Domain Administrator. The uidNumber is not 0. This instance of root was created by the smbldap tools that I use to administer my LDAP server. |
|
Back to top |
|
|
|