HP3000-L Archives

August 2003, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Emerson, Tom" <[log in to unmask]>
Reply To:
Emerson, Tom
Date:
Tue, 19 Aug 2003 11:20:34 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (50 lines)
> -----Original Message-----
> From: Wyell Grunwald [mailto:[log in to unmask]]
> 
> I have a need to test a user in a jobstream for the 
> capability of IA (Interactive Access).[...]
> Ideally, I would like to do something like:
> 
> IF capability (USER.AMISYS) contains IA then
>    OK to go
> Else
>    Error message / page
> Endif

[only 'cause someone brought it up recently] "<plug>": Vesoft's VEaudit product, IN CONJUNCTION with MPEX, "does this" </plug>

%veaudit help cap

  1. CAP(S), VEACCTINFO function
  2. CAP(S), VEUSERINFO function
  3. CAP(S), VEGROUPINFO function
[...]
Which of the above would you like help on (or CR to exit)? 2

CAPS                [INT]     Capabilities, in WHO intrinsic format.
FMTCAPS             [STR]     Capabilities formatted, as in HPUSERCAPF
                              variable.
CAP(S)              [BOOL]    TRUE if the user has the capability indicated by
                              the string S, e.g.  CAP("PM") means "does user
                              have PM capability?"
MPE GROUP ATTRIBUTE VARIABLES

Usable in %VEAUDIT LISTGROUP selection conditions,
VEGROUPINFO('group.acct').attrvar expressions, and ![RGROUP.attrvar] in a
%REPEAT ...  %VEAUDIT FORGROUPS construct.
=====================


So, for your needs, the direct example would be:

% IF VEUSERINFO("USER.AMISYS").CAP("IA")
%    OK to go
% Else
%    Error message / page
% Endif

Note that you need BOTH products for this to work (getting user/acct info is an offshoot of veaudit, using it "in an expresssion" is MPEX...)

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2