XYGATE User Authentication Reference Manual

XYGATE
®
User Authentication
(XUA) 1.85 Reference Manual
Chapter 15. Mapping NonStop IDs to Alternative Authentication Databases
XYPRO Technology Corporation 133 Proprietary and Confidential
15.2.5 EXIT Operator
If different mapping schemas are desired for userids belonging to the same UAGroup,
the EXIT operator can be used.
Syntax:
MAP RE:"<RX pattern>" { INSERT | APPEND | DELETE | REPLACE } ["string"] EXIT
In Example 7 below, users OPER1.RSA123 and OPER2-RSASEC are being
authenticated through the same OPERATORS UAGROUP. The RSA userid for
OPER.RSA123 (OPER dot RSA123) is RSA123; the RSA userid for OPER2-RSASEC
(OPER dash RSA123) is RSASEC2.
Example 7: Using EXIT operator
UAGROUP OPERATORS
FROM_USER *.*
TO_USER OPER1.* alias:"OPER*"
MAP RE:"^.*\." DELETE EXIT
MAP RE:"^.*\-" DELETE
MAP RE:"^.*$" APPEND "2" EXIT
If user OPER1.RSA123 attempts to logon, the "OPER1." part of the ID will be matched
via the "^.*\." regular expression (first MAP rule in the example) and DELETED.
Because of the EXIT operator, none of the other MAP rules will be applied for further
ID conversion. The matched string will be deleted, and RSA123 userid will be used for
authentication with RSA.
If alias OPER2-RSASEC attempts to logon, in addition to deleting the "OPER2-"
part, "2" has to be appended to "RSASEC". Only then will the EXIT operator be
applied.
15.2.6 INSERT Operator
The INSERT operator inserts the specified quoted string before the matched pattern.
Syntax:
MAP RE:"<RX pattern>" INSERT <"string">
In Example 8 below, the expression " [A-Z]" means any letters between A and Z. The
expression "{3,3}" means a minimum of 3 and a maximum of 3 of the repetitions of
previous pattern, which, in this case, is any letter. Therefore, any alias beginning with
3 letters will match the expression, and "denver." will be inserted before the matching
3 letters. So in Example 8 below, the first the characters are OPR, so OPR-S4ABCDE is
converted to denver.OPR-S4ABCDE.
Example 8: Using EXIT operator
UAGROUP TEST-INSERTS-2
! OPR-S4ABCDE --> stringOPR-S4ABCDE
MAP RE:"^[A-Z]{3,3}" INSERT "denver."
!Selection criteria:
to_user ALIAS:"OPR-S4UMAY"
from_user $EVERYONE-NET