LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-17-2011, 11:39 AM   #1
guna_pmk
Member
 
Registered: Sep 2008
Posts: 220

Rep: Reputation: 5
local user login takes very long time if ldap server not available


Hello,

I have already raised an issue along this line. I have configured an ldap server and a client to see the server. If the ldap server is available, both the remote and local accounts login are fine. But if the ldap server is not available, even the local user account takes a very very long time (5 to 10 minutes) to login. Following are the config files on my client:

/etc/ldap.conf:
URI ldaps://ldapserver/
BASE dc=domain,dc=com
TLS_REQUEST allow

/etc/nsswitch.conf:
passwd: files ldap
shadow: files ldap
group: files ldap
(rest of the nsswitch.conf are left to default and there is no other ldap presense anywhere in the file)

/etc/pam.d/system-auth:
auth required pam_env.so
auth sufficient pam_unix.so nullok try_first_pass
auth requisite pam_succeed_if.so uid >= 500 quiet
auth sufficient pam_ldap.so use_first_pass
auth required pam_deny.so

account required pam_unix.so broken_shadow
account sufficient pam_localuser.so
account sufficient pam_succeed_if.so uid < 500 quiet
account [default=bad success=ok user_unknown=ignore] pam_ldap.so
account required pam_permit.so

password requisite pam_cracklib.so try_first_pass retry=3
password sufficient pam_unix.so md5 shadow nullok try_first_pass use_authtok
password sufficient pam_ldap.so use_authtok
password required pam_deny.so

session optional pam_keyinit.so revoke
session required pam_limits.so
session optional pam_mkhomedir.so
session [success=1 default=ignore] pam_succeed_if.so service in crond quiet use_uid
session required pam_unix.so
session optional pam_ldap.so

Any ideas?

Thanks
 
Old 03-17-2011, 01:25 PM   #2
Omnicronos
Member
 
Registered: Oct 2010
Location: N. VA
Distribution: Redhat, CentOS, Solaris
Posts: 40

Rep: Reputation: 12
You would probably just need to change the LDAP server timeout on the client-side.

See this thread:

http://www.linuxquestions.org/questi...etting-847718/
 
Old 03-18-2011, 09:26 AM   #3
guna_pmk
Member
 
Registered: Sep 2008
Posts: 220

Original Poster
Rep: Reputation: 5
That solved the problem of the long delay. Thanks Omnicronos.

But is there a way to prevent the client to poke the ldap server even for the local user?

Thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH : Takes a long time to login to a remote server TomCruise2002 Linux - Networking 8 12-04-2011 01:01 PM
Login takes a very long time Jensens Linux - Networking 2 03-23-2006 03:24 AM
SSH : Takes a long time to login to a remote server TomCruise2002 Linux - Enterprise 1 12-16-2005 06:58 PM
Connecting to local ProFTPD takes a long time Dee-ehn Linux - Networking 3 12-07-2004 12:58 AM
Local caching only DNS takes a long time to resolve essdeeay Linux - Networking 4 08-20-2004 11:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration