Netscape MANAGEMENT SYSTEM 4.5 - CUSTOMIZATION GUIDE Manual page 22

Table of Contents

Advertisement

JavaScript Used By All Interfaces
Table 1-1
Variables Returned by the Base JavaScript
Variable
AUTH_TOKEN
authTokenCount
fixed
header
HTTP_HEADERS
22
Netscape Certificate Management System Customization Guide • October 2001
Format/Type and Description
array
Each element in this array is a name-value pair. These pairs represent variables
that were returned from an authentication plug-in used (internally) by the
interface. For example, if the authentication plug-in returned variables
fooValid and barValid indicating whether the foo and bar parameters of
a request were valid, the JavaScript in the response might look like:
header.AUTH_TOKEN[0].name = "fooValid";
header.AUTH_TOKEN[0].value = "false";
header.AUTH_TOKEN[1].name = "barValid";
header.AUTH_TOKEN[1].value = "true";
These values are created when an authentication plug-in invokes
set(nameSrting, valueString) on an AuthToken object.
number
The number of AUTH_TOKEN objects returned in this response.
object
An object for containing data that is constant, such as the hostname, port
number, or ID number associated with a request.
object
An object for containing data that applies to the entire response, such as the
number of records or the LDAP query that was used to get the data.
Array
Each element in this array is a name-value pair. These pairs represent HTTP
request headers sent from the client to the interface.
Use the CMS.cfg parameter saveHttpHeaders to list HTTP header values
that should be saved and returned in responses.
For example, if saveHttpHeaders is set to "accept-language,
user-agent", the JavaScript in the response might look like:
header.HTTP_HEADERS[0].name = "accept-language"
header.HTTP_HEADERS[0].value = "en";
header.HTTP_HEADERS[1].name = "user-agent"
header.HTTP_HEADERS[1].value = "Mozilla/4.51 (X11; U;
SunOS 5.7 sun4u)";
The default value for saveHttpHeaders (if it is not explicitly set in CMS.cfg)
is "accept-language, user-agent".

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netscape management system 4.5

Table of Contents