1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00

r26131: Ensure we show the right errors in the NULL base DN case. Based on

bug 5090 by Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>

Andrew Bartlett
(This used to be commit cc2d0c9f15)
This commit is contained in:
Andrew Bartlett 2007-11-26 06:12:01 +01:00 committed by Stefan Metzmacher
parent d47b967b13
commit 37039ea5b0

View File

@ -530,10 +530,12 @@ int ltdb_search(struct ldb_module *module, struct ldb_request *req)
ldb_asprintf_errstring(module->ldb,
"NULL Base DN invalid for a base search");
ret = LDB_ERR_INVALID_DN_SYNTAX;
break;
case LDB_SCOPE_ONELEVEL:
ldb_asprintf_errstring(module->ldb,
"NULL Base DN invalid for a one-level search");
ret = LDB_ERR_INVALID_DN_SYNTAX;
break;
case LDB_SCOPE_SUBTREE:
default:
/* We accept subtree searches from a NULL base DN, ie over the whole DB */