You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@directory.apache.org by Neha Rawat <nn...@gmail.com> on 2014/11/10 09:32:11 UTC

Overriding machine rules for attributes

Hello,
Is there a way to override matching rules in attribute?
Specifically I may have to execute case-sensitive search at one time and
case-insensitive search at some other time  on the same attribute.

I read a few articles and found that I can use extensible filters for the
same.
I tried the below syntax while setting the filter but that does not work
for me and I get no results.

"(attribute:2.5.3.12:=value)" (where "2.5.3.12" is the numeric OID for the
caseIgnoreMatch equality matching rule).

I also tried to
use org.apache.directory.api.ldap.model.filter.ExtensibleNode class but
could not find enough examples to check its correct usage.

I have to use JNDI for this. It would be great if you could help me out.

Thanks,
Neha

Re: Overriding machine rules for attributes

Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 10/11/14 09:58, Neha Rawat a écrit :
> Ooops.
> Is there any other way to achieve this functionality? Some workaround or
> some other ugly way of doing this?
> Only requirement is to achieve case-sensitive & case-insensitive search on
> the same attribute.

There is no workaround. You have to filter the result on the client side.

It's probably a better idea to define your own attribute that is
case-sensitive and add it to your entry, in order to be able to do a
case-sensitive search.


Re: Overriding machine rules for attributes

Posted by Neha Rawat <nn...@gmail.com>.
Ooops.
Is there any other way to achieve this functionality? Some workaround or
some other ugly way of doing this?
Only requirement is to achieve case-sensitive & case-insensitive search on
the same attribute.

On Mon, Nov 10, 2014 at 2:12 PM, Kiran Ayyagari <ka...@apache.org>
wrote:

> On Mon, Nov 10, 2014 at 4:32 PM, Neha Rawat <nn...@gmail.com> wrote:
>
> > Hello,
> > Is there a way to override matching rules in attribute?
> > Specifically I may have to execute case-sensitive search at one time and
> > case-insensitive search at some other time  on the same attribute.
> >
> > I read a few articles and found that I can use extensible filters for the
> > same.
> >
> ApacheDS currently doesn't support extensible matching
>
> > I tried the below syntax while setting the filter but that does not work
> > for me and I get no results.
> >
> > "(attribute:2.5.3.12:=value)" (where "2.5.3.12" is the numeric OID for
> the
> > caseIgnoreMatch equality matching rule).
> >
> > I also tried to
> > use org.apache.directory.api.ldap.model.filter.ExtensibleNode class but
> > could not find enough examples to check its correct usage.
> >
> > I have to use JNDI for this. It would be great if you could help me out.
> >
> > Thanks,
> > Neha
> >
>
>
>
> --
> Kiran Ayyagari
> http://keydap.com
>



-- 
Love and Luck,
Neha

Re: Overriding machine rules for attributes

Posted by Kiran Ayyagari <ka...@apache.org>.
On Mon, Nov 10, 2014 at 4:32 PM, Neha Rawat <nn...@gmail.com> wrote:

> Hello,
> Is there a way to override matching rules in attribute?
> Specifically I may have to execute case-sensitive search at one time and
> case-insensitive search at some other time  on the same attribute.
>
> I read a few articles and found that I can use extensible filters for the
> same.
>
ApacheDS currently doesn't support extensible matching

> I tried the below syntax while setting the filter but that does not work
> for me and I get no results.
>
> "(attribute:2.5.3.12:=value)" (where "2.5.3.12" is the numeric OID for the
> caseIgnoreMatch equality matching rule).
>
> I also tried to
> use org.apache.directory.api.ldap.model.filter.ExtensibleNode class but
> could not find enough examples to check its correct usage.
>
> I have to use JNDI for this. It would be great if you could help me out.
>
> Thanks,
> Neha
>



-- 
Kiran Ayyagari
http://keydap.com