home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!VAX.LIVERPOOL-POLY.AC.UK!CSDRFLOOD
- From: CSDRFLOOD@VAX.LIVERPOOL-POLY.AC.UK
- Newsgroups: comp.os.vms
- Subject: Re: How do you set pre-expired passwords with $SETUAI
- Message-ID: <9207221305.AA01218@ucbvax.Berkeley.EDU>
- Date: 22 Jul 92 09:27:35 GMT
- Sender: daemon@ucbvax.BERKELEY.EDU
- Distribution: world
- Organization: The Internet
- Lines: 34
-
-
- In article <1992Jul21.182543.28188@nntpd.lkg.dec.com>, Coar@Nephi.Enet.DEC.Com
- (various unidentifiable cute names) writes:
-
- >In article <110510@muvms3.bitnet>, boag@muvms3.bitnet (Bob Boag) writes...
- >
- >>It could be that I just missed it somewhere in the manuals, but I can't seem
- >> to
- >>find any way to mark a password as pre-expired when using the $SETUAI system
- >>service.
- >>
- >>Does anyone know how to do this with VMS V5.4?
- >
- > Simply put, a pre-expired password is one whose binary representation has
- > all bits set. So you can do this by giving UAI$_PWD a quadword with both
- > longwords containing -1.
-
- Far be it from me to correct a DEC person, but NO NO NO!!
-
- Setting UAI$_PWD to -1 will render the account unusable interactively, (at a
- guess - I haven't tried it). Pre-expired passwords are marked by having the
- quadword UAI$_PWD_DATE set to both longwords = -1. From the description of
- SYS$SETUAI, it appears that this is not an input parameter, although SYS$GETUAI
- will return it. (Might be worth trying $SETUAI with UAI$_PWD_DATE and seeing
- if it accepts it).
-
- I suggest trying $GETUAI for UAI$_FLAGS, setting the UAI$M_PWD_EXPIRED bit, and
- $SETUAI the flags again, and see how that goes. This flag is used, I believe,
- when LOGINOUT notices that the password lifeime has been exceeded.
-
- Regards,
- Ronan Flood, Systems Manager (pro tem), CSDRFLOOD@VAX.LIVPOL.AC.UK
- Liverpool Polytechnic Computer Services.
-
-