[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#7168) [PATCH] Fix count constraint when using multiple modifications

Full_Name: Jan Synacek
Version: 2.4.29
OS: Fedora 16
URL: http://jsynacek.fedorapeople.org/openldap/jsynacek-20120216-constraint-count.patch
Submission from: (NULL) (

Constraint overlay doesn't take into account multiple modifications when using

Example: If count for 'description' attribute is set e.g. to 2, the following
results in a constraint violation:

dn: cn=usr2, dc=my-domain,dc=com
add: description
description: d1
description: d2
description: d3-viol

However, this passes:

dn: cn=usr2, dc=my-domain,dc=com
add: description
description: d1
add: description
description: d2
add: description
description: d3

This patch fixes the behavior in case multiple modifications are used.

Original bug report: https://bugzilla.redhat.com/show_bug.cgi?id=742163

The patch is uploaded on fedorapeople.org:

I wasn't able to use ftp.openldap.org due to 'No space left' error.

The attached file is derived from OpenLDAP Software. All of the modifications
OpenLDAP Software represented in the following patch(es) were developed by Red
Hat. Red Hat has not assigned rights and/or interest in this work to any party.
I, Jan Synacek am authorized by Red Hat, my employer, to release this work
the following terms.

Red Hat hereby place the following modifications to OpenLDAP Software (and only
these modifications) into the public domain. Hence, these modifications may be
freely used and/or redistributed for any purpose with or without attribution
and/or other notice.