determine minimum password length of an account
cc . . . -lprot -lm
int passlen (life_dur, login_delay, alphabet_size)
the minimum password length according to the algorithm in the
DoD Password Management Guideline (Green Book)
the password lifetime duration for an account in seconds,
the argument life_dur;
login delay between login attempts in seconds,
the argument login_delay;
of distinct characters.
Two of the parameters used by the
are fixed, namely the size of the alphabet at 26 characters (the argument
alphabet_size should always reflect this) and the
probability of guessing a password at 1 chance in a million.
The formula for min_pass_len is:
routine returns the result of the calculation rounded up to the nearest
integer so as to err on the side of greater security.
is always successful and therefore no errors are defined.
lifetime duration, the login delay time, or the guess parameter
changes in the Protected Password
database for this account (or for the system default if those values
are used in an account), it is a good idea to invalidate the password
in case the new parameters require a longer minimum password length.
DoD Password Management Guideline (Green Book),
CSC-STD-002-85, 12 April 1985.
The passlen routine
is an extension of AT&T System V provided by the
Santa Cruz Operation.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003