[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: badfilter on simple search
Assuming you have the same schema that I'm using....
1. Find the qmail.schema file
2. Find the mailQuota attribute
3. Add the following lines:
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
4. Stop/start ldap
You should be able to search for the exact value, or use wildcards to
search now.
pwilson
> Greetings --
>
> I'm having a problem with a search and cannot find a single thing about
> it. I'm using Qmail-LDAP, and OpenLDAP 2.0.23 on Debian 3.0. I'm doing
> a search on 'mailQuota':
>
> $ ldapsearch -b 'ou=accounts,dc=midco,dc=net' -x
> '(mailQuota=2048000S,5000C)'
>
> ldapsearch returns:
>
> version: 2
>
> #
> # filter: (mailQuota=2048000S,5000C)
> # requesting: ALL
> #
>
> # search result
> search: 2
> result: 0 Success
>
> # numResponses: 1
>
>
> syslog shows:
>
> Jul 10 15:28:33 ldap1 slapd[6355]: conn=21879 op=1 SRCH
> base="ou=accounts,dc=midco,dc=net" scope=2 filter="(badfilter)"
>
>
> If I put _anything_ after the '=' except '*', as in 'mailQuota=*', I get
> 'badfilter'. I'm completely stumped. Ideas?
>
> Thanks.
>
> --
> Brendon Colby
> Systems Administrator
> Midcontinent Communications