diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-09-24 12:50:13 -0700 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-09-25 10:38:45 -0700 |
commit | 85ba79063f35b5a073b3670b82daa2aa6dfb40bb (patch) | |
tree | 9563a66c992846c62db6ca8537029acf7aa02a37 /source4/dsdb/samdb/ldb_modules/password_hash.c | |
parent | 5568fcd88b2a32ba389694ee35ab521af1ea7394 (diff) | |
download | samba-85ba79063f35b5a073b3670b82daa2aa6dfb40bb.tar.gz samba-85ba79063f35b5a073b3670b82daa2aa6dfb40bb.tar.bz2 samba-85ba79063f35b5a073b3670b82daa2aa6dfb40bb.zip |
ldb: mark the location of a lot more ldb requests
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/password_hash.c')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/password_hash.c | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/password_hash.c b/source4/dsdb/samdb/ldb_modules/password_hash.c index 550f3c4e43..488b8b7d33 100644 --- a/source4/dsdb/samdb/ldb_modules/password_hash.c +++ b/source4/dsdb/samdb/ldb_modules/password_hash.c @@ -2183,16 +2183,19 @@ static int build_domain_data_request(struct ph_context *ac) "minPwdAge", "minPwdLength", NULL }; + int ret; ldb = ldb_module_get_ctx(ac->module); - return ldb_build_search_req(&ac->dom_req, ldb, ac, - ldb_get_default_basedn(ldb), - LDB_SCOPE_BASE, - NULL, attrs, - NULL, - ac, get_domain_data_callback, - ac->req); + ret = ldb_build_search_req(&ac->dom_req, ldb, ac, + ldb_get_default_basedn(ldb), + LDB_SCOPE_BASE, + NULL, attrs, + NULL, + ac, get_domain_data_callback, + ac->req); + LDB_REQ_SET_LOCATION(ac->dom_req); + return ret; } static int password_hash_add(struct ldb_module *module, struct ldb_request *req) @@ -2370,6 +2373,7 @@ static int password_hash_add_do_add(struct ph_context *ac) ac->req->controls, ac, ph_op_callback, ac->req); + LDB_REQ_SET_LOCATION(down_req); if (ret != LDB_SUCCESS) { return ret; } @@ -2530,6 +2534,7 @@ static int password_hash_modify(struct ldb_module *module, struct ldb_request *r req->controls, ac, ph_modify_callback, req); + LDB_REQ_SET_LOCATION(down_req); if (ret != LDB_SUCCESS) { return ret; } @@ -2675,7 +2680,7 @@ static int password_hash_mod_search_self(struct ph_context *ac) NULL, ac, ph_mod_search_callback, ac->req); - + LDB_REQ_SET_LOCATION(search_req); if (ret != LDB_SUCCESS) { return ret; } @@ -2796,6 +2801,7 @@ static int password_hash_mod_do_mod(struct ph_context *ac) ac->req->controls, ac, ph_op_callback, ac->req); + LDB_REQ_SET_LOCATION(mod_req); if (ret != LDB_SUCCESS) { return ret; } |