LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-07-2004, 10:56 PM   #1
xyz098
LQ Newbie
 
Registered: Jun 2004
Posts: 4

Rep: Reputation: 0
KDE + LDAP = snail speed


I recently got a new work machine (3 GHz Pentium), which is on an
IPSec network, with the default setup to use LDAP.
The distrubution is SuSE 9 (with KDE 3.1) + official updates.

Besides LDAP being used for username + password lookups,
it seems to be also used for hostname lookups.

Running GNOME is no problem, though I prefer KDE.
Problem is, KDE was about as fast as a snail on a good day;
for example, changing small folders in KMail took at least 20 seconds.
( localhost and the name of the local machine were already in /etc/hosts )

The solution was to disable LDAP via SuSE's Yast2 configurator.
KDE flies like a demon now.

So the question is: why does LDAP slow things down so much ?

OR, alternatively,

if the problem is not with LDAP, it means that KDE is looking up
hostnames and/or usernames all the time. How does one disable
this default behavior ? is this a bug ?
 
Old 06-08-2004, 07:48 AM   #2
linuxxed
Member
 
Registered: Feb 2004
Posts: 273

Rep: Reputation: 30
LDAP is pretty fast. Open LDAP uses the ldap.conf in /etc/openldap/ldap.conf. PAM uses /etc/ldap.conf. Check your settings there.

What happens when you do a "finger" to the user stored on ldap?


The file /etc/nsswitch.conf controls is file is used or ldap or .. etc etc. On redhat "authconfig" is used to enable/disable ldap. ALternatively you can edit the files yourself.

Another thing to check is the pam config "/etc/pam.d/system_auth"


What happens when you use the ldap util "ldapsearch".
 
Old 06-08-2004, 09:24 PM   #3
xyz098
LQ Newbie
 
Registered: Jun 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
What happens when you do a "finger" to the user stored on ldap?
it takes between 5 to 10 seconds to respond


Quote:
The file /etc/nsswitch.conf controls is file is used or ldap or .. etc etc.
Wherever possible, the first option was "files", followed by "dns" or "db" etc.
example:

passwd: files
group: files
hosts: files dns

if the dns option was removed, everything started to work real quick (while LDAP was enabled)
but looking up hostnames didn't work. this is strange, as the /etc/hosts file had the entries for
the hosts I was looking up.
(this leads me to believe that the slowdown problem with KDE
has more to do with looking up hostnames rather than usernames/passwords).

i've noticed that /etc/nsswitch.files also exists, though it has everything set to "files",
except for "hosts", which is the same as for /etc/nsswitch.conf.

Quote:
Another thing to check is the pam config "/etc/pam.d/system_auth"
this file doesn't seem to exist on SuSE linux 9. there are plenty of other files,
but none of them mention "ldap".
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LDAP in KDE 3.3.2/KAddressbook/Slackware current Danus ex Slackware 0 01-31-2005 07:35 PM
KDE speed over the versions redjokerx Linux - Software 10 10-03-2004 04:48 AM
couple of qs, gnome ftp, removing kde or improving speed of kde, startup modprobe darkleaf Linux - Software 2 07-20-2004 09:54 AM
why does KDE + LDAP = snail speed ? xyz098 Linux - Software 0 06-07-2004 10:45 PM
Mouse Speed on kde Ciccio Linux - Newbie 9 06-11-2003 09:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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