r9318: fix searches with scope ONE and SUB,
authorStefan Metzmacher <metze@samba.org>
Tue, 16 Aug 2005 06:55:40 +0000 (06:55 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:33:23 +0000 (13:33 -0500)
commit8609e7993237e5ffe54830299212c128e082d9b9
tree06dbe3d968833c32ca395329d6fd7b94c8e768ab
parent56aadf82af5e3c5feeeb0dc5a5c14fc6967b4336
r9318: fix searches with scope ONE and SUB,

the problem was that ldb_dn_compare_base() just looked at if
both dn's mtach some how, and the following happens:

basedn: CN=bar,DC=foo,DC=com
dn: DC=foo,DC=com

and dn: DC=foo,DC=com was return as result of a sub and base search

and also the ONE search with
basedn: DC=foo,DC=com

returned this

dn: CN=bla,CN=bar,DC=foo,DC=com

metze
(This used to be commit 2a107472c373e425013050e28b944c830f653a87)
source4/lib/ldb/common/ldb_dn.c
source4/lib/ldb/common/ldb_match.c