Le 13/05/16 15:45, Srini Velaga a écrit :
> Hello, I'm hoping to get some answer to below question.
>
> I wanted to search with DN type attribute. For example, I have custom
> attribute with value of "cn=user1,ou=orgou,ou=orgou2,o=org", and my ldap
> filter is (customattribute=*user1*) but it does not give me any results. I
> even tried with full DN but no results.
>
> Could some one advise me how I can query with DN type attributes. Thanks.
>
You can't do a search using a Substring filter on a DN attribute. LDAP
defines no MatchingRule for such a search.

What you can do is to define your attribute differently, using a
DirectoryString syntax instead of a DN syntax. Don't forgot to define a
SUBSTR MatchingRule (caseIgnoreSubstringsMatch would do the trick).

Reply via email to