[LDB] ldbsearch overmatching
simo
idra at samba.org
Tue Jan 10 14:03:50 GMT 2006
On Tue, 2006-01-10 at 20:58 +1100, Andrew Bartlett wrote:
> I've been messing around with ldb, and in my testing I ran:
>
> bin/ldbsearch -H /data/samba/samba4/prefix/private/sam.ldb 'cn=domain
> users'
>
> On unmodified code, this returns two entries:
> # returned 0 records
> # record 1
> dn: CN=Domain Users,CN=Users,DC=tammy,DC=abartlet,DC=net
>
> # record 2
> dn: CN=DomainUpdates,CN=System,DC=tammy,DC=abartlet,DC=net
>
> What I'm wondering is: is there a bug in the ldb index code, causing it
> to return entries that match a substring, without doing a full check?
No, on CN there is no index, so we do a full search here.
I found the bug, it is in our comparison function.
I'm fixing it.
Simo.
More information about the samba-technical
mailing list