diff options
Diffstat (limited to 'source4/lib/ldb/common/ldb.c')
-rw-r--r-- | source4/lib/ldb/common/ldb.c | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/source4/lib/ldb/common/ldb.c b/source4/lib/ldb/common/ldb.c index e93560e559..ba88e6cd64 100644 --- a/source4/lib/ldb/common/ldb.c +++ b/source4/lib/ldb/common/ldb.c @@ -635,7 +635,8 @@ static void ldb_trace_request(struct ldb_context *ldb, struct ldb_request *req) case LDB_SEARCH: ldb_debug_add(ldb, "ldb_trace_request: SEARCH\n"); ldb_debug_add(ldb, " dn: %s\n", - ldb_dn_get_linearized(req->op.search.base)); + ldb_dn_is_null(req->op.search.base)?"<rootDSE>": + ldb_dn_get_linearized(req->op.search.base)); ldb_debug_add(ldb, " scope: %s\n", req->op.search.scope==LDB_SCOPE_BASE?"base": req->op.search.scope==LDB_SCOPE_ONELEVEL?"one": @@ -921,6 +922,10 @@ int ldb_build_search_req_ex(struct ldb_request **ret_req, return LDB_ERR_OPERATIONS_ERROR; } + if (parent) { + req->handle->nesting++; + } + *ret_req = req; return LDB_SUCCESS; } @@ -988,6 +993,10 @@ int ldb_build_add_req(struct ldb_request **ret_req, return LDB_ERR_OPERATIONS_ERROR; } + if (parent) { + req->handle->nesting++; + } + *ret_req = req; return LDB_SUCCESS; @@ -1026,6 +1035,10 @@ int ldb_build_mod_req(struct ldb_request **ret_req, return LDB_ERR_OPERATIONS_ERROR; } + if (parent) { + req->handle->nesting++; + } + *ret_req = req; return LDB_SUCCESS; @@ -1064,6 +1077,10 @@ int ldb_build_del_req(struct ldb_request **ret_req, return LDB_ERR_OPERATIONS_ERROR; } + if (parent) { + req->handle->nesting++; + } + *ret_req = req; return LDB_SUCCESS; @@ -1104,6 +1121,10 @@ int ldb_build_rename_req(struct ldb_request **ret_req, return LDB_ERR_OPERATIONS_ERROR; } + if (parent) { + req->handle->nesting++; + } + *ret_req = req; return LDB_SUCCESS; @@ -1173,6 +1194,10 @@ int ldb_build_extended_req(struct ldb_request **ret_req, return LDB_ERR_OPERATIONS_ERROR; } + if (parent) { + req->handle->nesting++; + } + *ret_req = req; return LDB_SUCCESS; |