]> git.sur5r.net Git - openldap/commitdiff
ITS#7781 Add test
authorOndřej Kuzník <ondra@mistotebe.net>
Mon, 15 Sep 2014 21:33:42 +0000 (22:33 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Sun, 21 Dec 2014 01:32:47 +0000 (19:32 -0600)
tests/data/constraint/constraint.out
tests/data/constraint/t_fail_16.ldif [new file with mode: 0644]
tests/scripts/test064-constraint

index 468d3afc6efbfb0c88d1a8811e1f57ab59350ae1..d7bcca4bfd3605c9c1f6a3f1025577c98c194bad 100644 (file)
@@ -28,3 +28,4 @@ FAIL
 FAIL
 FAIL
 FAIL
+FAIL
diff --git a/tests/data/constraint/t_fail_16.ldif b/tests/data/constraint/t_fail_16.ldif
new file mode 100644 (file)
index 0000000..055f284
--- /dev/null
@@ -0,0 +1,4 @@
+dn: cn=John Doe,ou=users,dc=example,dc=com
+changetype: modify
+replace: jpegPhoto
+jpegPhoto: AAAA
index 79b9814ecae434f9814f382ac17b98aa8e442ab8..94f86be890b78b01607cc2a3b56e684703c66c54 100755 (executable)
@@ -96,6 +96,7 @@ olcConstraintAttribute: mail
 olcConstraintAttribute: mail count 1 restrict="ldap:///ou=groups,$BASEDN??one"
 olcConstraintAttribute: mail regex ^[[:alnum:]]+@example.com$
 olcConstraintAttribute: description count 2
+olcConstraintAttribute: jpegPhoto count 0
 # cn value has to be concatenated givenName SP sn
 olcConstraintAttribute: cn,sn,givenName
   set "(this/givenName + [ ] + this/sn) & this/cn"