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 This program is free software; you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation; either version 2 of the License, or
14 (at your option) any later version.
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with this program; if not, write to the Free Software
23 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 #ifdef HAVE_SYS_PRIV_H
47 #ifdef HAVE_SYS_SECURITY_H
48 #include <sys/security.h>
50 #define PASSWORD_LENGTH 16
51 #endif /* HAVE_SYS_SECURITY_H */
54 #include <sys/label.h>
55 #include <sys/audit.h>
63 #ifdef REPLACE_GETPASS
64 #define getpass(prompt) getsmbpass((prompt))
68 #define NGROUPS_MAX 32 /* Guess... */
71 /* what is the longest significant password available on your system?
72 Knowing this speeds up password searches a lot */
73 #ifndef PASSWORD_LENGTH
74 #define PASSWORD_LENGTH 8
77 #if defined(HAVE_PUTPRPWNAM) && defined(AUTH_CLEARTEXT_SEG_CHARS)
78 #define OSF1_ENH_SEC 1
81 #ifndef ALLOW_CHANGE_PASSWORD
82 #if (defined(HAVE_TERMIOS_H) && defined(HAVE_DUP2) && defined(HAVE_SETSID))
83 #define ALLOW_CHANGE_PASSWORD 1
87 #if defined(HAVE_CRYPT16) && defined(HAVE_GETAUTHUID)