summaryrefslogtreecommitdiffstats
path: root/source4/include/system/passwd.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-11-02 11:42:35 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:05:20 -0500
commit6bd02aa5046b606171a680e6f8aefba31b744af1 (patch)
tree9b87ee2247f8db0d410718b26b8f34db37532af8 /source4/include/system/passwd.h
parentf74ea959fe88e752b876791d2a3b998a88bd9800 (diff)
downloadsamba-6bd02aa5046b606171a680e6f8aefba31b744af1.tar.gz
samba-6bd02aa5046b606171a680e6f8aefba31b744af1.tar.xz
samba-6bd02aa5046b606171a680e6f8aefba31b744af1.zip
r3478: split out some more pieces of includes.h
(This used to be commit 8e9212ecfc61c509f686363d8ec412ce54bc1c8d)
Diffstat (limited to 'source4/include/system/passwd.h')
-rw-r--r--source4/include/system/passwd.h29
1 files changed, 23 insertions, 6 deletions
diff --git a/source4/include/system/passwd.h b/source4/include/system/passwd.h
index 901b1b92f2..8a5402131a 100644
--- a/source4/include/system/passwd.h
+++ b/source4/include/system/passwd.h
@@ -56,15 +56,32 @@
#define getpass(prompt) getsmbpass((prompt))
#endif
-#ifndef HAVE_INITGROUPS
-int initgroups(char *name,gid_t id);
+#ifndef NGROUPS_MAX
+#define NGROUPS_MAX 32 /* Guess... */
#endif
-#ifndef HAVE_CRYPT
-#define crypt ufc_crypt
+/* what is the longest significant password available on your system?
+ Knowing this speeds up password searches a lot */
+#ifndef PASSWORD_LENGTH
+#define PASSWORD_LENGTH 8
#endif
+#if defined(HAVE_PUTPRPWNAM) && defined(AUTH_CLEARTEXT_SEG_CHARS)
+#define OSF1_ENH_SEC 1
+#endif
-#ifndef NGROUPS_MAX
-#define NGROUPS_MAX 32 /* Guess... */
+#ifndef ALLOW_CHANGE_PASSWORD
+#if (defined(HAVE_TERMIOS_H) && defined(HAVE_DUP2) && defined(HAVE_SETSID))
+#define ALLOW_CHANGE_PASSWORD 1
+#endif
#endif
+
+#if defined(HAVE_CRYPT16) && defined(HAVE_GETAUTHUID)
+#define ULTRIX_AUTH 1
+#endif
+
+
+#ifndef HAVE_INITGROUPS
+int initgroups(char *name,gid_t id);
+#endif
+