From 57abdf3eaa424deafda497a4a896328238353e18 Mon Sep 17 00:00:00 2001
From: Laurent Bercot
Date: Sun, 6 Dec 2020 15:32:11 +0000
Subject: Prepare for 0.1.0.0, add --enable-libc-includes configure switch
pwd.h, grp.h and shadow.h will not overwrite the libc headers
by default anymore; you need to explicitly add the switch.
---
doc/libnsss/index.html | 25 ++++++++++++++++++++++---
1 file changed, 22 insertions(+), 3 deletions(-)
(limited to 'doc/libnsss/index.html')
diff --git a/doc/libnsss/index.html b/doc/libnsss/index.html
index 3514c42..bbe5029 100644
--- a/doc/libnsss/index.html
+++ b/doc/libnsss/index.html
@@ -102,6 +102,17 @@ will automatically be aliased to nsss_all_getpwnam(), and
the other functions will be aliased similarly.
+
+ pwd.h can be found in the nsss/ subdirectory of
+the header installation directory; if the --enable-libc-includes
+option has been given to configure, it can also be found directly
+in that directory. (Example: /usr/include/nsss/pwd.h is
+always installed, but if the option has been given at nsss build time,
+/usr/include/pwd.h is also installed and replaces the
+version provided by the libc.) This also applies to the grp.h
+and shadow.h files.
+
+
If the NSSS_DISABLE_SWITCH macro is defined before inclusion of the
nsss headers, then getpwnam() will be aliased to
@@ -121,9 +132,17 @@ functions will follow the same pattern.
are visible in your header search path.
Use #include <nsss/nsss.h>
To use the standard pwd.h interface, you can
-just #include <pwd.h>, which will work as long
-as the nsss/pwd.h header is accessible in your header
-search path.
+just #include <pwd.h>, which will work:
+
+ - either if the --enable-libc-includes option
+has been given at nsss build time
+ - or if you give the -I/usr/include/nsss option
+to your compiler. (Depending on your standard header location,
+specify that the header search path should include the
+nsss subdirectory of that location.) This is useful when
+the administrator did not want to overwrite the libc-provided
+pwd.h file when they installed nsss.
+
Same thing for grp.h and shadow.h.
If don't want to use the nsss-all implementation of
"try nsss-switch and fall back to nsss-unix if it fails", then
--
cgit v1.3.1