LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-15-2013, 08:38 PM   #1
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
OpenLDAP Auth (login) very slow


Hi Guys,

Background:
Running on Centos 6.4, doing a trial setup of openldap.

Using vm1 as server, host system as client, one ldap user setup, just for testing.
Followed this HOWTO (Server) http://www.server-world.info/en/note...S_6&p=ldap&f=1 & (Client) http://www.server-world.info/en/note...S_6&p=ldap&f=2

This allows me to login to the ldap server on the vm from my client (host).
However, it takes 20 seconds after putting in passwd, before the prompt returns.

I've tried googling, but couldn't find a soln, although there are many hits.
Maybe I just don't understand the terminology

Let me know what you need to see and I'll post it.
(NB: I don't usually work with ldap, so you'll need to be detailed/specific with any advice; thx)

Versions:
Server
python-ldap-2.3.10-1.el6.x86_64
openldap-clients-2.4.23-32.el6_4.1.x86_64
pe-ruby-ldap-0.9.8-5.pe.el6.x86_64
openldap-2.4.23-32.el6_4.1.x86_64
openldap-servers-2.4.23-32.el6_4.1.x86_64

Client
apr-util-ldap-1.3.9-3.el6_0.1.x86_64
pe-ruby-ldap-0.9.8-5.pe.el6.x86_64
pam_ldap-185-11.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
openldap-clients-2.4.23-32.el6_4.1.x86_64
nss-pam-ldapd-0.7.5-18.1.el6_4.x86_64
openldap-2.4.23-32.el6_4.1.x86_64

Last edited by chrism01; 05-15-2013 at 11:03 PM. Reason: add sw versions
 
Old 05-15-2013, 11:42 PM   #2
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

Rep: Reputation: 42
This may help:

http://techhelplist.com/index.php/te...penldap-faster
 
Old 05-16-2013, 01:22 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Original Poster
Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Now that's interesting... I tried that web-page a little while ago, but it had no effect & I didn't want to prejudice any replies.
Funnily enough, the index advice seems to have had quite an effect this time

Didn't bother with altering nscd settings; I've only got one 'machine' at each end and one test user
OTOH, I did add it to the server end; it was only on the client. Doesn't seem to make it any quicker than the indexing already did, but no harm in having it I suppose.

Anyway, thx for the prompt to re-visit; funny how these things work out sometimes eh?
 
Old 05-16-2013, 02:58 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Original Poster
Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
EDIT: basic (port 389) works.
Will open new thread for TLS issue

Last edited by chrism01; 05-16-2013 at 11:48 PM. Reason: mark as solved and start new thread
 
  


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
Can auth to AD with GUI login, but not CLI login. irreverentryan Linux - Enterprise 3 04-28-2013 05:30 PM
[SOLVED] SSH auth via openLDAP server fails with 'ldap_search_st(): Timed out' error kriskurk Linux - Security 1 07-06-2011 10:03 PM
Openldap client auth Kateto Linux - Server 4 10-29-2007 01:59 PM
QMAIL AUTH LOGIN AUTH=LOGIN Arghhhhhhhh DrNeil Linux - Networking 3 09-04-2004 10:07 AM
"Public" OpenLDAP Auth across nework ghight Linux - Software 1 04-22-2004 01:46 PM

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

All times are GMT -5. The time now is 03:38 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