home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / vms / 12636 < prev    next >
Encoding:
Internet Message Format  |  1992-07-22  |  1.8 KB

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