MirOS Manual: check_expire(3), login_check_expire(3)

CHECK_EXPIRE(3)            BSD Programmer's Manual             CHECK_EXPIRE(3)

NAME

     check_expire - check for password expiration

SYNOPSIS

     #include <stdio.h>
     #include <util.h>

     int
     login_check_expire(FILE *back, struct passwd *pwd, char *class,
             int lastchance);

DESCRIPTION

     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,
     has expired.

     If a class is specified, it is used instead of the class specified in the
     user's password database entry. If the lastchance argument is non-zero,
     the user's password has expired, and it has not been expired longer than
     "password-dead" seconds (see login.conf(5)), the user will be able to log
     in one last time to change the password.

RETURN VALUES

     The login_check_expire() function returns 0 if the user's password has
     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.

SEE ALSO

     auth_subr(3), authenticate(3), login.conf(5)

MirOS BSD #10-current         November 26, 2000                              1

Generated on 2014-07-04 21:17:45 by $MirOS: src/scripts/roff2htm,v 1.79 2014/02/10 00:36:11 tg Exp $

These manual pages and other documentation are copyrighted by their respective writers; their source is available at our CVSweb, AnonCVS, and other mirrors. The rest is Copyright © 2002‒2014 The MirOS Project, Germany.
This product includes material provided by Thorsten Glaser.

This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report – diffs preferred.