[Pkg-shadow-devel] slow useradd -r on LDAP box

Nicolas François nicolas.francois at centraliens.net
Sat Jul 18 00:43:02 UTC 2009

Hi Peter,

On Thu, Jul 16, 2009 at 03:57:26PM +0200, pvrabec at redhat.com wrote:
> here are the patches:

Thanks. They are applied.

> * .ldap patch solves the problem with slow addition of system accounts on 
> boxes that use big ldap. (https://bugzilla.redhat.com/show_bug.cgi?id=511813)

I changed the comment to:
		/* setpwent / getpwent / endpwent can be very slow with
		 * LDAP configurations (and many accounts).
		 * Since there is a limited amount of IDs to be tested
		 * for system accounts, we just check the existence
		 * of IDs with getpwuid.

Regarding the default value for SYS_UID_MIN / SYS_GID_MIN, is it really
101 on RedHat, or should it be 100?
(On Debian, only 0-99 is statically reserved)

Best Regards,

More information about the Pkg-shadow-devel mailing list