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

BasicAttribute with filter options



Hello
Is posible to include a filter like (cn=*some*) int the BassicAttribute??

I have some method in java that use the
DirContext.search(String name, Attributes matchingAttributes, String[]
attributesToReturn)
but when I try to put somthing like (cn=*some*) the api apply the encoding
rules defined in RFC 2254 and my * is not taken like a filter.

So is posible to do this?
or is better idea do this with the method
DirContext.search(String name, String filter, SearchControls cons)

But how could I restrict this last mehtod to return only the atributes that
I need??

Thanks in advance
  Mauricio Alarcon