[Pkg-shadow-devel] skip external database checks (NIS, LDAP)
Nicolas François
nicolas.francois at centraliens.net
Sun Jan 23 14:40:41 UTC 2011
Hi Peter,
On Thu, Jan 13, 2011 at 10:12:22AM +0100, pvrabec at redhat.com wrote:
>
> I have received several requests where people asked for functionality that
> will enable useradd, groupadd, to add records to local database even if the
> same record exists in NIS/LDAP.
>
> "-l" / "--local" switch can be introduced for this purpose. If it's used, then
> pw_locate_uid(), pw_next(), pw_rewind(), gr_rewind(), ... would take place
> instead of getgrgid(), getgrgid(), getpwuid(), getpwuid(), ... . Basically it
> will omit name service switch (NSS)
>
> Questions is if this functionality is desired and if it could be accepted by
> upstream when I send a patch?
Yes, it would be interesting to have this functionality.
It would be nice to have this consistently in useradd, usermod, userdel
(and group*).
I have no better proposal, but "-l" (and "-L") is already used in usermod.
--
Nekral
More information about the Pkg-shadow-devel
mailing list