Issue 8242 - constraint overlay gets bypassed for add operations without RDN attribute explicitly listed
Summary: constraint overlay gets bypassed for add operations without RDN attribute exp...
Status: VERIFIED DUPLICATE of issue 7420
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: overlays (show other issues)
Version: 2.4.41
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-10 18:05 UTC by subbarao@computer.org
Modified: 2021-08-03 17:58 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 subbarao@computer.org 2015-09-10 18:05:30 UTC
Full_Name: Kartik Subbarao
Version: 2.4.41
OS: Ubuntu 14.4
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (173.75.228.155)


I have the constraint overlay configured to disallow space characters in the uid
attribute. Normally this behaves as expected and rejects attributes with spaces,
such as when I add this LDIF entry with ldapmodify:

dn: uid=test app@example,com,dc=example,dc=com
objectClass: applicationProcess
objectClass: llnwApplication
uid: test app@example.com
cn: test app
description: This is a test

The constraint overlay properly rejects the add operation.

But if I leave out the 'uid' attribute, it bypasses the constraint overlay and
adds the entry:

dn: uid=test app@example,com,dc=example,dc=com
objectClass: applicationProcess
objectClass: llnwApplication
cn: test app
description: This is a test

Looking at the source code, this behavior seems to happen because
constraint_add() loops through the op->ora_e->e_attrs list, which the RDN
attribute is absent from in this case.
Comment 1 subbarao@computer.org 2015-09-11 13:37:54 UTC
I just realized that this issue is a duplicate of ITS#7420 which was 
reported in 2012. Sorry for the duplication.

     -Kartik

Comment 2 Quanah Gibson-Mount 2020-03-21 19:29:06 UTC

*** This issue has been marked as a duplicate of issue 7420 ***