Subject: | |
From: | |
Reply To: | |
Date: | Tue, 24 Feb 1998 16:25:18 +0000 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Ernie Newton <[log in to unmask]> on 2/24/98 asks:
<snip>
> Is there a way, using MPEX, to send a message to those logging into
> TELESUP reminding them that TELESUP is no longer valid and please log
> into SYS? Then aborting their attempted logon.
Ernie,
Yes, you can do what you want to do without even using MPEX. First,
log in to the old account as an "AM" capable user. Next, create an
account logon udc in the old account, TELESUP, for example that
contains the following statements:
LOGINMESSAGE
OPTION LOGON,NOBREAK
IF (LFT("!HPUSERCAPF",2) <> 'SM' AND &
LFT("!HPUSERCAPF",2) <> 'AM') THEN
ECHO ** WARNING: This account is no longer production account! **
ECHO ** **
ECHO ** Please log in to new account, SYS; Thank you!! **
BYE
ELSE
ECHO ** **
ECHO ** WARNING: This account is no longer production account! **
ECHO ** **
ENDIF
Next, use the SETCATALOG command to set this new UDC file at the
account level:
SETCATALOG <whatever name you gave the above UDC file>;ACCOUNT
The IF statement will check to see if the user has SM or AM
capability. If so, you may still want to allow them to get into the
old account for some reason. Without the IF statement no one will be
able to get into the old account. All attempts to sign on would be
given the warning message and then logged off.
One gotcha: The above example only works on MPE/iX machines!
YMMV,
John Hornberger
Sr. Systems Programmer
General Signal Services
[log in to unmask]
|
|
|