Merged chkpwr to chkusr and moved defines to config.h.
This commit is contained in:
parent
0957057793
commit
71555fc275
12 changed files with 171 additions and 51 deletions
50
config.h
Normal file
50
config.h
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
#define VERSION "1.5.0"
|
||||
|
||||
/* For chkgrp */
|
||||
#ifndef MAX_LINE
|
||||
#define MAX_LINE 1024
|
||||
#endif
|
||||
|
||||
/* MAX_NAME is also used by chkpwd */
|
||||
#ifndef MAX_NAME
|
||||
#define MAX_NAME 256
|
||||
#endif
|
||||
|
||||
/* For chkpwd */
|
||||
#ifndef MAX_PASSWORD
|
||||
#define MAX_PASSWORD 256
|
||||
#endif
|
||||
|
||||
#ifndef MAX_UID
|
||||
#define MAX_UID 1000
|
||||
#endif
|
||||
|
||||
#ifndef MIN_UID
|
||||
#define MIN_UID 1000
|
||||
#endif
|
||||
|
||||
/* For chkpwr */
|
||||
#ifndef MAX_PASSWORD_LENGTH
|
||||
#define MAX_PASSWORD_LENGTH 32
|
||||
#endif
|
||||
|
||||
#ifndef MIN_PASSWORD_LENGTH
|
||||
#define MIN_PASSWORD_LENGTH 12
|
||||
#endif
|
||||
|
||||
#ifndef MIN_LOWERCASE
|
||||
#define MIN_LOWERCASE 2
|
||||
#endif
|
||||
|
||||
#ifndef MIN_UPPERCASE
|
||||
#define MIN_UPPERCASE 2
|
||||
#endif
|
||||
|
||||
#ifndef MIN_DIGITS
|
||||
#define MIN_DIGITS 2
|
||||
#endif
|
||||
|
||||
#ifndef MIN_SPECIAL
|
||||
#define MIN_SPECIAL 2
|
||||
#endif
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue