This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
initgroups
- From: Jean-Eric Cuendet <jean-eric dot cuendet at linkvest dot com>
- To: libc-alpha at sources dot redhat dot com, drepper at redhat dot com, bug-glibc at gnu dot org
- Date: Tue, 05 Nov 2002 14:51:04 +0100
- Subject: initgroups
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
--------------------------------------------------------