PDA

View Full Version : Search multi value attribute



hasdy
Sep 30th, 2007, 11:59 AM
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!!!

rasky
Oct 1st, 2007, 01:04 AM
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.