[comp.os.vms] LOGINOUT vs. $GETJPI/JPI$_UAF_FLAGS

gkn@A.SDSC.EDU (08/07/87)

The contents of CTL$GL_UAF_FLAGS, which is where $GETJPI gets JPI$_UAF_FLAGS
from, is set by LOGINOUT a little too soon. 

Suppose you're interested in determing from a program that someone's password
has expired on the current login session (meaning that you're allowed to log
in, but with the caveat that you must change your password before you can
log in interactivly again).  This information is supposed to be in the UAF
flags, and in fact are, but in SYSUAF only.  The copy in memory is stale.

The problem is that LOGINOUT sets CTL$GL_UAF_FLAGS in routine INIT_KERNEL,
and then goes and doctors UAF$L_FLAGS in UPDATE_UAF_RECORD.

The workaround is to use $GETUAI to get a fresh copy of the UAF flags to
check to see if password(s) is(are) expired.

Sigh.

gkn
----------------------------------------
Internet: GKN@SDS.SDSC.EDU
Bitnet:   GKN@SDSC
Span:	  SDSC::GKN (27.1)
USPS:	  Gerard K. Newman
	  San Diego Supercomputer Center
	  P.O. Box 85608
	  San Diego, CA 92138
AT&T:	  619.534.5076