Using JavaScript for Policies
Chapter
11
Policies
495
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:
Содержание Certificate Management System 6.1
Страница 1: ...Administrator s Guide Netscape Certificate Management System Version6 1 February 2003...
Страница 28: ...Documentation 28 Netscape Certificate Management System Administrator s Guide February 2003...
Страница 68: ...Support for Open Standards 68 Netscape Certificate Management System Administrator s Guide February 2003...
Страница 82: ...Uninstalling CMS 82 Netscape Certificate Management System Administrator s Guide February 2003...
Страница 166: ...How a Registration Manager Works 166 Netscape Certificate Management System Administrator s Guide February 2003...
Страница 382: ...ACL Reference 382 Netscape Certificate Management System Administrator s Guide February 2003...
Страница 566: ...Managing Policy Plug in Modules 566 Netscape Certificate Management System Administrator s Guide February 2003...
Страница 710: ...1 3 Organization Security Policies 710 Netscape Certificate Management System Administrator s Guide February 2003...
Страница 716: ...Object Identifiers 716 Netscape Certificate Management System Administrator s Guide February 2003...
Страница 762: ...DNs in Certificate Management System 762 Netscape Certificate Management System Administrator s Guide February 2003...
Страница 794: ...Managing Certificates 794 Managing Servers with Netscape Console December 2001...
Страница 810: ...The SSL Handshake 810 Managing Servers with Netscape Console December 2001...
Страница 828: ...828 Netscape Certificate Management System Administrator s Guide February 2003...