Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Odd su problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
chuck_theobald
n00b
n00b


Joined: 08 Apr 2005
Posts: 36

PostPosted: Fri May 19, 2006 5:49 pm    Post subject: Odd su problem Reply with quote

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
View user's profile Send private message
smerf
l33t
l33t


Joined: 06 Nov 2004
Posts: 778
Location: Polska

PostPosted: Fri May 19, 2006 9:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5947

PostPosted: Sat May 20, 2006 10:00 am    Post subject: Reply with quote

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
View user's profile Send private message
smerf
l33t
l33t


Joined: 06 Nov 2004
Posts: 778
Location: Polska

PostPosted: Sat May 20, 2006 7:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
chuck_theobald
n00b
n00b


Joined: 08 Apr 2005
Posts: 36

PostPosted: Sun May 21, 2006 9:59 pm    Post subject: su - problem Reply with quote

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
View user's profile Send private message
smerf
l33t
l33t


Joined: 06 Nov 2004
Posts: 778
Location: Polska

PostPosted: Mon May 22, 2006 6:38 am    Post subject: Reply with quote

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
View user's profile Send private message
chuck_theobald
n00b
n00b


Joined: 08 Apr 2005
Posts: 36

PostPosted: Mon May 22, 2006 3:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum