summaryrefslogtreecommitdiffstats
path: root/ctdb/lib/replace/system/passwd.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-01-05 17:41:01 +1100
committerAndrew Tridgell <tridge@samba.org>2008-01-05 17:41:01 +1100
commit370779a1bb0218f31d02f0976e143d4b5d84b3d4 (patch)
treefd466f27d5334c23eff9dbb61c304e014e868ae9 /ctdb/lib/replace/system/passwd.h
parent67d2b14d908498b28bf19febc958cbf5f91cc1ec (diff)
downloadsamba-370779a1bb0218f31d02f0976e143d4b5d84b3d4.tar.gz
samba-370779a1bb0218f31d02f0976e143d4b5d84b3d4.tar.xz
samba-370779a1bb0218f31d02f0976e143d4b5d84b3d4.zip
update from Samba4
(This used to be ctdb commit 298118c41bd33acd1a34a35a71a28451a45390c5)
Diffstat (limited to 'ctdb/lib/replace/system/passwd.h')
-rw-r--r--ctdb/lib/replace/system/passwd.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/ctdb/lib/replace/system/passwd.h b/ctdb/lib/replace/system/passwd.h
index 4e858fc89c..36fca7b4f8 100644
--- a/ctdb/lib/replace/system/passwd.h
+++ b/ctdb/lib/replace/system/passwd.h
@@ -27,6 +27,9 @@
*/
+/* this needs to be included before nss_wrapper.h on some systems */
+#include <unistd.h>
+
#ifdef HAVE_PWD_H
#include <pwd.h>
#endif
@@ -65,7 +68,8 @@
#endif
#ifdef REPLACE_GETPASS
-#define getpass(prompt) getsmbpass((prompt))
+#define getpass(prompt) rep_getpass(prompt)
+char *rep_getpass(const char *prompt);
#endif
#ifndef NGROUPS_MAX
@@ -92,4 +96,11 @@
#define ULTRIX_AUTH 1
#endif
+#ifdef NSS_WRAPPER
+#ifndef NSS_WRAPPER_NOT_REPLACE
+#define NSS_WRAPPER_REPLACE
+#endif
+#include "lib/nss_wrapper/nss_wrapper.h"
+#endif
+
#endif