check_expire - check for password expiration
login_check_expire(FILE *back, struct passwd *pwd, char
The login_check_expire() function is called by a BSD authentication login
script to check whether the user's password entry, as described by pwd,
If a class is specified, it is used instead of the class
specified in the
user's password database entry. If the lastchance argument
the user's password has expired, and it has not been expired
``password-dead'' seconds (see login.conf(5)), the user will
be able to
log in one last time to change the password.
The login_check_expire() function returns 0 if the user's
not expired, and 1 if it has expired or if an error occurred.
Status and error messages are passed back to the login
script caller via
the back channel, back.
auth_subr(3), authenticate(3), login.conf(5)
OpenBSD 3.6 November 26, 2000
[ Back ]