initgroups

Jean-Eric Cuendet jean-eric.cuendet@linkvest.com
Tue Nov 5 05:51:00 GMT 2002


Hi,
Since we use an LDAP db for UserID storage (OpenLDAP) , the commands : 
su, login, etc... are very slow even if we use NSCD.
The problem comes from the fact that we have ~10 security groups defined 
for each user and it takes ~0.5secs/groups to retrieve from the server!
So a login takes between 4-8 seconds depending the number of groups the 
user is member of.

After a little investigation, I found that the initgroups function 
doesn't use nscd! That's the problem of our problem.
Is it real? Normal? Is there a workaround for that?

Does anybody else have such a problem?
Thanks for any advice.
-jec

-- 
Jean-Eric Cuendet
Linkvest SA
Av des Baumettes 19, 1020 Renens Switzerland
Tel +41 21 632 9043  Fax +41 21 632 9090
E-mail: jean-eric.cuendet@linkvest.com
http://www.linkvest.com
--------------------------------------------------------





More information about the Libc-alpha mailing list