Issue 7773 - slapo-constraint falsely restricts modrdn with count 1
Summary: slapo-constraint falsely restricts modrdn with count 1
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: 2.4.38
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-28 12:52 UTC by Michael Ströder
Modified: 2014-08-01 21:04 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description ando@openldap.org 2013-12-28 07:23:01 UTC
changed notes
changed state Open to Test
moved from Incoming to Software Bugs
Comment 1 Michael Ströder 2013-12-28 12:52:37 UTC
Full_Name: 
Version: 2.4.38
OS: 
URL: 
Submission from: (NULL) (212.227.35.93)


Sometimes it's useful to restrict an existing attribute type declared
multi-valued to a single value with slapo-constraint to avoid modifying the
standard schema.

Example:

constraint_attribute
  uid
  count 1
  restrict="ldap:///ou=example??sub?(objectClass=account)"

Unfortunately when using uid in the RDN one cannot rename the entry anymore even
when deleteoldrdn is set to true.

slapo-constraint should handle this case exactly like SINGLE-VALUE RDN
attributes are handled.
Comment 2 ando@openldap.org 2013-12-28 15:22:10 UTC
On 12/28/2013 01:52 PM, michael@stroeder.com wrote:
> Full_Name:
> Version: 2.4.38
> OS:
> URL:
> Submission from: (NULL) (212.227.35.93)
>
>
> Sometimes it's useful to restrict an existing attribute type declared
> multi-valued to a single value with slapo-constraint to avoid modifying the
> standard schema.
>
> Example:
>
> constraint_attribute
>    uid
>    count 1
>    restrict="ldap:///ou=example??sub?(objectClass=account)"
>
> Unfortunately when using uid in the RDN one cannot rename the entry anymore even
> when deleteoldrdn is set to true.
>
> slapo-constraint should handle this case exactly like SINGLE-VALUE RDN
> attributes are handled.

Should be fixed in git master.  Nothing specific to rename; rather, 
slapo-constraint was not handling internal modifications like 
softadd/softdel.

p.

-- 
Pierangelo Masarati
Associate Professor
Dipartimento di Scienze e Tecnologie Aerospaziali
Politecnico di Milano

Comment 3 Quanah Gibson-Mount 2014-01-07 16:06:54 UTC
changed notes
changed state Test to Release
Comment 4 Quanah Gibson-Mount 2014-01-29 09:30:36 UTC
changed notes
changed state Release to Closed
Comment 5 OpenLDAP project 2014-08-01 21:04:50 UTC
fixed in master
fixed in RE25
fixed in RE24