Re: [LDAP] Speeding up authentication using ldap

This is a discussion on Re: [LDAP] Speeding up authentication using ldap within the Linux Administration forums, part of the Linux Forums category; Davide Bianchi wrote: > After some digging and checking I find out that the problem is the > retrieval of ...


Go Back   Usenet Forums > Linux Forums > Linux Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-20-2006
Mike Johnson
 
Posts: n/a
Default Re: [LDAP] Speeding up authentication using ldap

Davide Bianchi wrote:
> After some digging and checking I find out that the problem is the
> retrieval of the groups to which the user belongs. The nss library
> run a search of the type
>
> (&(objectClass=posixGroup)(|(memberUid=usernameher e)(uniqueMember=theDNhere)))
>
> And this takes about 25 seconds to retrieve the groups. I noticed that if
> I use the non-RFC 2307 Bis query type
>
> (&(objectClass=posixGroup)(memberUid=usernamehere) )
>
> it returns the same data but it takes only a fraction of a second.


Sounds like you need an index on uniqueMember. Dunno. Ask an LDAP group
(and send the relevant schema)... If I remember right, you can also turn
on debugging during a search and you can watch what searches the
database does that aren't indexed.

- Mike Johnson
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:21 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0