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

searching multi-valued attributes...



Title: searching multi-valued attributes...

Need some help...

I am trying to perform an ldap search on my directory where the entries contain the logical AND of two specific attribute values. One of these attributes allows multiple values. For example, suppose I have defined an object class 'myobjectclass' that can contain the attributes 'id' and 'role', with 'role' being a muti-value attribute.

Performing an ldapsearch with the following filter returns all entries with id=20 that have the role attribute set.

(&(objectclass=myobectclass)(id=20)(role=*))

Performing an ldapsearch with the following filter returns no entries even though there is an entry with attribute id=20 and role=myrole.

(&(objectclass=myobjectclass)(id=20)(role=myrole))

Am I missing something? Any help would be appreciated.