[Pkg-shadow-devel] slow useradd -r on LDAP box
pvrabec at redhat.com
Mon Jul 20 12:22:05 UTC 2009
On Saturday 18 July 2009 02:43:02 am Nicolas François wrote:
> 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)
I have set it to 101 because SYS_GID == 100 is already occupied. Max static
SYS_UID I can see is 99.
> Best Regards,
More information about the Pkg-shadow-devel