RSC/MP 7.2 Programming Manual

Access Control Server
HP NonStop Remote Server Call (RSC/MP) Programming Manual—522360-004
9-9
Authorized List Header
uVersion
The version of the TDP that the ACS compares to the version of RSC/MP that an
application is using to ensure version compatibility with an application. The
RSC/MP version is taken from the RSC_VERSION value defined in the RSC.H file.
uSessionType
The session type (RSC_ST_IDS or RSC_ST_INTERPROCESS) value set by the
TDP.
acUserId
The user ID set by the TDP (from the options area) to be authenticated. The ID
cannot be more than 18 characters and must be NULL-terminated.
acPassword
The password set by the TDP (from the options area) to be authenticated. The
password cannot be more than 18 characters and must be NULL-terminated.
uServerCount
The number of processes and server classes that the workstation is authorized to
use. The ACS sets this field. This value should only be set when the ACS passes a
list back to the TDP.
acAcsMessage
A message space that the workstation can use to pass data from the TDP to the
ACS. The message is limited to 128 bytes.
Authorized List Header
Use an authorized list if you need the TDP to receive and check a list of server classes
or processes that a session has authorization to use. The list of server classes is
returned to the TDP from the ACS during session initialization. Using the authorized list
header ensures that any unauthorized attempt to access server classes or processes
through the TDP is not allowed. When the TDP receives messages from the
workstation, it caches the list of server classes for the session. If the next workstation’s
WriteRead does not have authorization to use the server, error message 70 is returned
to the TDP and workstation.
This code shows an authorized list header, RSC_ACS_AUTHORIZED_LIST, included
in the RSC.H file:
typedef struct
{
RSC_ACS_HEADER sAcsHeader;
RSC_ACS_LIST_ENTRY acAuthorizedList [ RSC_MAX_AUTH_SRVRS ];
} RSC_ACS_AUTHORIZED_LIST;