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

Re: BasicAttribute with filter options

Loking in the jdni tutorial I saw that it's imposible to do a filter based
search using BasicAttribute, so it was necesary to change my code to use a
filter and remove the attributes that we dont use!

----- Original Message -----
From: "Mauricio Alarcon" <mauricio.alarcon@tecnovas.com>
To: <openldap-software@OpenLDAP.org>
Sent: Tuesday, June 10, 2003 6:19 PM
Subject: 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
> I need??
> Thanks in advance
>   Mauricio Alarcon