Introduction to Policy
562
Netscape Certificate Management System Installation and Setup Guide • May 2002
For general guidelines on developing custom policy modules and adding them to
the CMS policy framework, take a look at the samples installed at this location:
<server_root>/cms_sdk/cms_jdk/samples/policy
Using Predicates in Policy Rules
You can use predicates in a policy rule. A predicate indicates whether the rule that
contains the predicate applies to a request. If you specify a predicate as part of the
rule configuration, the policy rule applies that predicate based on request attributes
to determine whether the rule is applicable for a request.
The policy predicate is a logical expression. You form the expression using
variables and relational operators (
AND
or
OR
). For example, you could set up a
predicate to put the CRL Distribution Point extension only in SSL client certificates,
or set different validity dates for certificates for users in different groups.
The following are sample predicates:
HTTP_PARAMS.certType==client AND HTTP_PARAMS.ou==Engineering
HTTP_PARAMS.certType==server AND HTTP_PARAMS.o==Netscape OR
HTTP_PARAMS.certType==ca
Expression Support for Predicates
You form an expression using an attribute, its value, and one or more of the
operators listed in Table 18-1. For a list of attributes, see “Attributes for Predicates”
on page 564.
Note that the expression parsing support currently supports only two comparison
operators (
==
,
!=
) and two relational operators (
AND
,
OR
).
Table 18-1
Predicates in policy: supported comparison and logical operators
Operator
Description
==
Equal to
!=
Not equal to
AND
Logical operator
AND
OR
Logical operator
OR
Summary of Contents for NETSCAPE DIRECTORY SERVER 6.01
Page 1: ...Installation and Setup Guide Netscape Certificate Management System Version6 01 May 2002...
Page 22: ...22 Netscape Certificate Management System Installation and Setup Guide May 2002...
Page 32: ...32 Netscape Certificate Management System Installation and Setup Guide May 2002...
Page 160: ...160 Netscape Certificate Management System Installation and Setup Guide May 2002...
Page 776: ...776 Netscape Certificate Management System Installation and Setup Guide May 2002...
Page 807: ...807 Part 5 Appendix Appendix A Certificate Download Specification...
Page 808: ...808 Netscape Certificate Management System Installation and Setup Guide May 2002...
Page 830: ...830 Netscape Certificate Management System Installation and Setup Guide May 2002...