1 #ifndef _system_passwd_h
2 #define _system_passwd_h
5 Unix SMB/CIFS implementation.
7 passwd system include wrappers
9 Copyright (C) Andrew Tridgell 2004
11 ** NOTE! The following LGPL license applies to the replace
12 ** library. This does NOT imply that all of Samba is released
15 This library is free software; you can redistribute it and/or
16 modify it under the terms of the GNU Lesser General Public
17 License as published by the Free Software Foundation; either
18 version 3 of the License, or (at your option) any later version.
20 This library is distributed in the hope that it will be useful,
21 but WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23 Lesser General Public License for more details.
25 You should have received a copy of the GNU Lesser General Public
26 License along with this library; if not, see <http://www.gnu.org/licenses/>.
30 /* this needs to be included before nss_wrapper.h on some systems */
39 #ifdef HAVE_SYS_PRIV_H
54 #ifdef HAVE_SYS_SECURITY_H
55 #include <sys/security.h>
57 #define PASSWORD_LENGTH 16
58 #endif /* HAVE_SYS_SECURITY_H */
61 #include <sys/label.h>
62 #include <sys/audit.h>
71 #define NGROUPS_MAX 32 /* Guess... */
74 /* what is the longest significant password available on your system?
75 Knowing this speeds up password searches a lot */
76 #ifndef PASSWORD_LENGTH
77 #define PASSWORD_LENGTH 8
80 #if defined(HAVE_PUTPRPWNAM) && defined(AUTH_CLEARTEXT_SEG_CHARS)
81 #define OSF1_ENH_SEC 1
84 #ifndef ALLOW_CHANGE_PASSWORD
85 #if (defined(HAVE_TERMIOS_H) && defined(HAVE_DUP2) && defined(HAVE_SETSID))
86 #define ALLOW_CHANGE_PASSWORD 1
90 #if defined(HAVE_CRYPT16) && defined(HAVE_GETAUTHUID)
95 #ifndef NSS_WRAPPER_DISABLE
96 #ifndef NSS_WRAPPER_NOT_REPLACE
97 #define NSS_WRAPPER_REPLACE
98 #endif /* NSS_WRAPPER_NOT_REPLACE */
99 #include "../nss_wrapper/nss_wrapper.h"
100 #endif /* NSS_WRAPPER_DISABLE */
101 #endif /* NSS_WRAPPER */
104 # ifndef UID_WRAPPER_DISABLE
105 # ifndef UID_WRAPPER_NOT_REPLACE
106 # define UID_WRAPPER_REPLACE
107 # endif /* UID_WRAPPER_NOT_REPLACE */
108 # include "../uid_wrapper/uid_wrapper.h"
109 # endif /* UID_WRAPPER_DISABLE */
110 #else /* UID_WRAPPER */
111 # define uwrap_enabled() 0
112 #endif /* UID_WRAPPER */