]> git.sur5r.net Git - openldap/commitdiff
(ITS#5895) Example in constraint manual and documentation
authorGavin Henry <ghenry@openldap.org>
Mon, 19 Jan 2009 20:39:45 +0000 (20:39 +0000)
committerGavin Henry <ghenry@openldap.org>
Mon, 19 Jan 2009 20:39:45 +0000 (20:39 +0000)
doc/guide/admin/overlays.sdf
doc/man/man5/slapo-constraint.5

index cc1773c1e49e476ce19b2dde4675e9c2bd4cbc66..e3c55936b22a7de5d830ca44e1a31d6fe9c887d1 100644 (file)
@@ -357,7 +357,7 @@ H3: Constraint Configuration
 Configuration via {{slapd.conf}}(5) would look like:
 
 >        overlay constraint
->        constraint_attribute mail regex ^[:alnum:]+@mydomain.com$
+>        constraint_attribute mail regex ^[[:alnum:]]+@mydomain.com$
 >        constraint_attribute title uri
 >        ldap:///dc=catalog,dc=example,dc=com?title?sub?(objectClass=titleCatalog)
 
@@ -374,7 +374,7 @@ An example for use with {{cn=config}}:
 >       objectClass: olcOverlayConfig
 >       objectClass: olcConstraintConfig
 >       olcOverlay: constraint
->       olcConstraintAttribute: mail regex ^[:alnum:]+@mydomain.com$
+>       olcConstraintAttribute: mail regex ^[[:alnum:]]+@mydomain.com$
 >       olcConstraintAttribute: title uri ldap:///dc=catalog,dc=example,dc=com?title?sub?(objectClass=titleCatalog)
 
 
index af832ac4ce9bc26d43f00e25b8ead02279f7fe11..30413be9b8a261d37219b8e5035f740719f818f5 100644 (file)
@@ -103,7 +103,7 @@ LDAP_CONSTRAINT_VIOLATION error.
 overlay constraint
 constraint_attribute jpegPhoto size 131072
 constraint_attribute userPassword count 3
-constraint_attribute mail regex ^[:alnum:]+@mydomain.com$
+constraint_attribute mail regex ^[[:alnum:]]+@mydomain.com$
 constraint_attribute title uri
   ldap:///dc=catalog,dc=example,dc=com?title?sub?(objectClass=titleCatalog)
 constraint_attribute cn,sn,givenName set