1 .TH SLAPO-CONSTRAINT 5 "RELEASEDATE" "OpenLDAP LDVERSION"
2 .\" Copyright 2005-2006 Hewlett-Packard Company
3 .\" Copying restrictions apply. See COPYRIGHT/LICENSE.
5 slapo-constraint \- Attribute Constraint Overlay to slapd
9 The constraint overlay is used to enforce a regular expression
10 constraint on all values of specified attributes. Attributes can
11 have multiple constraints placed upon them, and all must be satisfied
12 when modifying an attribute value under constraint.
14 This overlay is intended to be used to force syntactic regularity upon
15 certain string represented data which have well known canonical forms,
16 like telephone numbers, post codes, FQDNs, etc.
20 option applies to the constraint overlay.
21 It should appear after the
25 .B constraint_attribute <attribute_name> <type> <value>
26 Specifies the constraint which should apply to the attribute named as
28 At the moment only one type of constraint is supported -
31 The parameter following the
34 type is a Unix style regular expression (See
38 Any attempt to add or modify an attribute named as part of the
39 constraint overlay specification which does not fit the regular
40 expression constraint listed will fail with a
41 LDAP_CONSTRAINT_VIOLATION error.
44 constraint_attribute mail regex ^[:alnum:]+@mydomain.com$
46 A specification like the above would reject any
49 attribute which did not look like
51 <alpha-numeric string>@mydomain.com
55 default slapd configuration file