home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!decwrl!decwrl!simpact!mvb.saic.com!macro32
- From: DWING@UH01.Colorado.EDU (Dan Wing)
- Newsgroups: vmsnet.internals
- Subject: Re: Need: Captive USR Pwd Procedure
- Message-ID: <01GMPWK8SH9U00005L@VAXF.COLORADO.EDU>
- Date: 23 Jul 92 19:18:47 GMT
- Organization: Macro32<==>Vmsnet.Internals Gateway
- Lines: 46
- X-Gateway-Source-Info: Mailing List
-
- Tom, vaughan@sjh.ORG, writes:
-
- >Has anyone seen a *good* command procedure or program that can be run in a
- >captive environment to let the user set their password? Security is the
- >first and last concern, but I don't want them out to DCL (hence VMS wacks
- >off their heads) because they will leave other things undone and data gets
- >messed up, or better yet the software won't let them back in.
-
- I can't say this is "good", but its what we use... It allows the user a
- few attempts to try to change it, and tells the user when they actually
- changed it (something I wish SET PASSWORD did by itself).
-
- -Dan Wing, DWING@UH01.Colorado.EDU or WING_D@UCOLMCC.BITNET (DGW11)
- Systems Programmer, University Hospital, Denver
-
- -----
-
- $ WRITE SYS$OUTPUT ""
- $ WRITE SYS$OUTPUT "You are about to change your VMS password -- this is the
- password"
- $ WRITE SYS$OUTPUT "you enter after typing your username (", -
- F$GETJPI(0,"USERNAME"), ")."
- $ WRITE SYS$OUTPUT ""
- $ COUNT = 1
- $_CHOICE_2_LOOP:
- $
- $ WRITE SYS$OUTPUT ""
- $ DEFINE/USER_MODE SYS$INPUT SYS$COMMAND
- $ SET noON
- $ SET PASSWORD
- $ STATUS = $STATUS
- $ SET ON
- $
- $ IF STATUS
- $ THEN
- $ WRITE SYS$OUTPUT "Your password has been changed."
- $ ELSE
- $ IF STATUS .NE. %X107780E4 ! locked password
- $ THEN
- $ COUNT = COUNT + 1
- $ IF COUNT .EQ. 3 THEN WRITE SYS$OUTPUT "You have one more attempt"
- $ IF COUNT .LE. 4 THEN GOTO _CHOICE_2_LOOP
- $ WRITE SYS$OUTPUT "You exceeded the password-change retry limit"
- $ ENDIF
- $ ENDIF
- $
-