*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> check_expire (3)              



NAME    [Toc]    [Back]

     check_expire - check for password expiration

SYNOPSIS    [Toc]    [Back]

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

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

DESCRIPTION    [Toc]    [Back]

     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    [Toc]    [Back]

     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    [Toc]    [Back]

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

OpenBSD     3.6                        November     26,      2000
[ Back ]
 Similar pages
Name OS Title
expiry Linux check and enforce password expiration policy
unix_chkpwd Linux check the password of the invoking user
timer_settime Tru64 Obtains or sets the expiration
timer_gettime Tru64 Obtains or sets the expiration
timer_settime IRIX set the expiration time for a posix timer
pthread_get_expiration_np Tru64 Obtains a value representing a desired expiration time
tis_get_expiration Tru64 Obtains a value representing a desired expiration time
timer_gettime IRIX get the time remaining before posix timer expiration
yppasswd Tru64 Update user password in Network Information Service (NIS) password map.
passwd IRIX change login password and password attributes
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service