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

Multiple occurences of same attribute values (ITS#1540)



Full_Name: Michael Ströder
Version: REL_ENG_2
OS: SuSE Linux 7.1
URL: 
Submission from: (NULL) (217.1.24.112)


I noticed that it's possible in OpenLDAP REL_ENG_2 to store
the same attribute value multiple times. AFAIK this violates the
X.500 data model.

LDAP servers of other vendors return a LDAP_TYPE_OR_VALUE_EXISTS
if a client tries to e.g. add or modify an entry like this:

objectClass: person
cn: Michael Stroeder
cn: Michael Stroeder
sn: Stroeder

My application uses python-ldap which is a simple C wrapper module
around the OpenLDAP 2 libs for Python. You probably should be able
to reproduce the issue with a few lines of C code.