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

Re: Approx search



Today at 1:51pm, Andreas Roedl wrote:

> Am Dienstag, 22. Oktober 2002 13:03 schrieb Frank Swasey:
> > Today at 12:06pm, Andreas Roedl wrote:
> > > > > ldapsearch -h localhost -x -LLL -b "ou=People,dc=company,dc=com"
> > > > > "(maildrop~=andreas.roedel@company.com)" maildrop
> > > >
> > > > And if you search on: "(maildrop=andreas.r*)" ?
> > >
> > > The same result. The filter code seems to respect the punctuation mark
> > > and stops at it. This should be configurable somehow...
> >
> > Does the definition of the maildrop attribute allow substring searches?
>
> It looks like this (don't know, if this is right or not):
>
> attributetype ( 1.3.6.1.4.1.10018.1.1.4 NAME 'maildrop'
>         DESC 'RFC822 Mailbox - mail alias'
>         EQUALITY caseIgnoreIA5Match
>         SUBSTR caseIgnoreIA5SubstringsMatch
>         SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )

Yep, SUBSTR is what is required for substring searches to work.  Now,
I'm completely confused.  I have no idea why you cannot find the entry
with the search specified above...  Maybe if you used a filter of
"(maildrop=*andreas.r*)" ???

-- 
Frank Swasey                    | http://www.uvm.edu/~fcs
Systems Programmer              | Always remember: You are UNIQUE,
University of Vermont           |    just like everyone else.
                    === God Bless Us All ===