source: vendor/current/lib/replace/system/passwd.h

Last change on this file was 988, checked in by Silvan Scherrer, 9 years ago

Samba Server: update vendor to version 4.4.3

File size: 2.0 KB
Line 
1#ifndef _system_passwd_h
2#define _system_passwd_h
3
4/*
5 Unix SMB/CIFS implementation.
6
7 passwd system include wrappers
8
9 Copyright (C) Andrew Tridgell 2004
10
11 ** NOTE! The following LGPL license applies to the replace
12 ** library. This does NOT imply that all of Samba is released
13 ** under the LGPL
14
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.
19
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.
24
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/>.
27
28*/
29
30#ifdef HAVE_UNISTD_H
31#include <unistd.h>
32#endif
33
34#ifdef HAVE_PWD_H
35#include <pwd.h>
36#endif
37#ifdef HAVE_GRP_H
38#include <grp.h>
39#endif
40#ifdef HAVE_SYS_PRIV_H
41#include <sys/priv.h>
42#endif
43#ifdef HAVE_SYS_ID_H
44#include <sys/id.h>
45#endif
46
47#ifdef HAVE_CRYPT_H
48#include <crypt.h>
49#endif
50
51#ifdef HAVE_SHADOW_H
52#include <shadow.h>
53#endif
54
55#ifdef HAVE_SYS_SECURITY_H
56#include <sys/security.h>
57#include <prot.h>
58#define PASSWORD_LENGTH 16
59#endif /* HAVE_SYS_SECURITY_H */
60
61#ifdef HAVE_GETPWANAM
62#include <sys/label.h>
63#include <sys/audit.h>
64#include <pwdadj.h>
65#endif
66
67#ifdef HAVE_COMPAT_H
68#include <compat.h>
69#endif
70
71#ifndef NGROUPS_MAX
72#define NGROUPS_MAX 32 /* Guess... */
73#endif
74
75/* what is the longest significant password available on your system?
76 Knowing this speeds up password searches a lot */
77#ifndef PASSWORD_LENGTH
78#define PASSWORD_LENGTH 8
79#endif
80
81
82#ifndef ALLOW_CHANGE_PASSWORD
83#if (defined(HAVE_TERMIOS_H) && defined(HAVE_DUP2) && defined(HAVE_SETSID))
84#define ALLOW_CHANGE_PASSWORD 1
85#endif
86#endif
87
88#if defined(HAVE_CRYPT16) && defined(HAVE_GETAUTHUID)
89#define ULTRIX_AUTH 1
90#endif
91
92#endif
Note: See TracBrowser for help on using the repository browser.