mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
Remove compat from DEFAULT_CONFIG lookup strings
* grp/initgroups.c: Include config.h. (DEFAULT_CONFIG): New macro. (internal_getgrouplist): Use DEFAULT_CONFIG. * nscd/initgrcache.c (addinitgroupsX): Likewise. * nss/nsswitch.c (__nss_disable_nscd): Likewise. (DEFAULT_DEFCONFIG): New macro. (__nss_database_lookup): Use DEFAULT_DEFCONFIG. * nss/grp-lookup.c: Include config.h (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL. * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise. * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise. * manual/nss.texi: Update default values section.
This commit is contained in:
@@ -318,13 +318,17 @@ The @code{passwd}, @code{group}, and @code{shadow} databases are
|
||||
traditionally handled in a special way. The appropriate files in the
|
||||
@file{/etc} directory are read but if an entry with a name starting
|
||||
with a @code{+} character is found NIS is used. This kind of lookup
|
||||
remains possible by using the special lookup service @code{compat}
|
||||
and the default value for the three databases above is
|
||||
@code{compat [NOTFOUND=return] files}.
|
||||
remains possible if @theglibc{} was configured with the
|
||||
@code{--enable-obsolete-nsl} option and the special lookup service
|
||||
@code{compat} is used. If @theglibc{} was configured with the
|
||||
@code{--enable-obsolete-nsl} option the default value for the three
|
||||
databases above is @code{compat [NOTFOUND=return] files}. If the
|
||||
@code{--enable-obsolete-nsl} option was not used the default value
|
||||
for the services is @code{files}.
|
||||
|
||||
For all other databases the default value is
|
||||
@code{nis [NOTFOUND=return] files}. This solution gives the best
|
||||
chance to be correct since NIS and file based lookups are used.
|
||||
For all other databases the default value is @code{files} unless
|
||||
@theglibc{} was configured with @code{--enable-obsolete-rpc} option, in
|
||||
which case it the default value is @code{nis [NOTFOUND=return] files}.
|
||||
|
||||
@cindex optimizing NSS
|
||||
A second point is that the user should try to optimize the lookup
|
||||
|
||||
Reference in New Issue
Block a user