Guardian Programmer's Guide

Table Of Contents
Writing a Command-Interpreter Monitor ($CMON)
Guardian Programmer’s Guide 421922-014
23 - 25
Controlling Adding a User
The format of the Adduser^msg message is as follows:
The $CMON process must respond to an Adduser^msg message with an
Adduser^reply structure; the reply code must be 0 to allow the new user or 1 to reject
the new user. The reply may also contain display text.
The format of the Adduser^reply structure is as follows:
Format of command-interpreter message -54 (Adduser^msg message):
STRUCT ADDUSER^MSG;
BEGIN
INT MSGCODE; ![0] value -54
INT USERID; ![1] user ID of user making the
! request
INT CIPRI; ![2] initial priority of command
! interpreter
INT CIINFILE[0:11]; ![3] name of command file of
! TACL process
INT CIOUTFILE[0:11]; ![15] name of list file for the
! TACL process
INT GROUPNAME[0:3]; ![27] the group name of the user
! being added
INT USERNAME[0:3]; ![31] name of the user being added
INT GROUP^ID; ![35] the group number of the user
! being added
INT USER^ID[0:3]; ![36] the user number of the user
! being added
END;
Format of Adduser^reply structure:
STRUCT ADDUSER^REPLY;
BEGIN
INT REPLYCODE; ![0] if 0, allows the user to
! be added; if 1, rejects the
! attempt to add a user
STRING REPLYTEXT[0:n]; ![1] optional display text;
! maximum length is 132 bytes
END;