![Netscape Certificate Management System 6.2 Administrator'S Manual Download Page 493](http://html1.mh-extra.com/html/netscape/certificate-management-system-6-2/certificate-management-system-6-2_administrators-manual_1674697493.webp)
Using JavaScript for Policies
Chapter
11
Policies
493
Using JavaScript for Policies
CMS includes a facility for complex scripting of the policy plug-in instances via
JavaScript
TM
. Using the JavaScript policy processor allows you to:
•
Determine the call sequence of existing Java plug-ins
•
Use complex logic to determine whether to call a plug-in (versus the simpler
predicates)
•
Write policies in JavaScript
•
Develop extensions without needing to know Java or have the Java SDK
CMS uses the Rhino JavaScript engine from
Mozilla.org
. You can get more details
about the Rhino project from this site:
http://www.mozilla.org/rhino
To learn more about how to use JavaScript in CMS, consult the sample
policy.js
file included in the distribution:
<server_root>/bin/cert/profiles/policy.js
Constraints-Specific Policy Module Reference
Constraints-specific policy plug-in modules help you define rules or constraints
that CMS uses to evaluate an incoming certificate enrollment, renewal, or
revocation request. Each module enables you to configure the server to check the
request for particular attributes, and, based on the configured criteria, either
modify these attributes or reject the request altogether.
AttributePresentConstraints
The
AttributePresentConstraints
plug-in module enables you to configure the
Certificate Manager and Registration Manager to reject a request if an LDAP
attribute (for example,
pin
) is not present in the enrolling user’s directory entry or
if the attribute does not have a specified value.
If you enable the policy and configure it correctly, it first searches for the user
under the base specified in the l
dap.ldapconn.basedn
parameter with the filter
(
uid=HTTP_PARAMS.UID
) for the user’s entry.
•
If the
value
parameter is empty, the policy checks the
attribute
parameter:
Summary of Contents for Certificate Management System 6.2
Page 1: ...Administrator s Guide Netscape Certificate Management System Version6 2 June 2003...
Page 22: ...22 Netscape Certificate Management System Administrator s Guide June 2003...
Page 30: ...Documentation 30 Netscape Certificate Management System Administrator s Guide June 2003...
Page 84: ...Uninstalling CMS 84 Netscape Certificate Management System Administrator s Guide June 2003...
Page 380: ...ACL Reference 380 Netscape Certificate Management System Administrator s Guide June 2003...
Page 750: ...Object Identifiers 750 Netscape Certificate Management System Administrator s Guide June 2003...
Page 828: ...Managing Certificates 828 Netscape Certificate Manager System Administrator s Guide June 2003...
Page 844: ...The SSL Handshake 844 Netscape Certificate Manager System Administrator s Guide June 2003...
Page 862: ...862 Netscape Certificate Management System Administrator s Guide June 2003...