Announcement Announcement Module
Collapse
No announcement yet.
Search multi value attribute Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Search multi value attribute

    Hi

    I have a multi-value attribute in active directory.

    I would like to do a search utilizing this attribute:

    ie:
    memberOf=Group1
    memberOf=Group2
    memberOf=Group3

    Then I'd like to do a search like
    new LikeFilter("memberOf", "*1");

    I've tried it like this, but it doesn't work. I figure there must be something I have to do since it is a multi-value attribute.

    Does anyone know what that 'something' is?

    thanks!!!

  • #2
    This should work - it has nothing to do with whether the attribute us multivalue. Could be caused by some syntax problem in the actual filter string; I don't recognize the 'LikeFilter'. Try using the WhitespaceWildcardsFilter, and note that you shouldn't add any wildcards yourself - the Filter class will do that for you.

    Comment

    Working...
    X