r15932: Remove per request creds
authorSimo Sorce <idra@samba.org>
Mon, 29 May 2006 11:57:09 +0000 (11:57 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:08:41 +0000 (14:08 -0500)
They have never benn used and make little sense too imo

source/dsdb/samdb/ldb_modules/extended_dn.c
source/dsdb/samdb/ldb_modules/kludge_acl.c
source/dsdb/samdb/ldb_modules/password_hash.c
source/dsdb/samdb/ldb_modules/rootdse.c
source/lib/ldb/common/ldb.c
source/lib/ldb/include/ldb.h
source/lib/ldb/modules/asq.c
source/lib/ldb/modules/operational.c
source/lib/ldb/modules/paged_results.c
source/lib/ldb/modules/sort.c
source/lib/ldb/tools/ldbsearch.c

index 520ffde32db3ac1abc98733857e8e83260da8a5d..8ca82b267096840c75b962eb9115bb75059a45ee 100644 (file)
@@ -371,8 +371,6 @@ static int extended_search_async(struct ldb_module *module, struct ldb_request *
                return LDB_ERR_OPERATIONS_ERROR;
        }
 
-       down_req->creds = req->creds;
-
        down_req->async.context = ac;
        down_req->async.callback = extended_async_callback;
        down_req->async.timeout = req->async.timeout;
index d6929bd732b0c26f6d3f96572b9e27ac371f787f..23d96ba2b74bf5623f667770d4e376265a13770f 100644 (file)
@@ -209,7 +209,6 @@ static int kludge_acl_search_async(struct ldb_module *module, struct ldb_request
        down_req->op.search.attrs = req->op.search.attrs;
        
        down_req->controls = req->controls;
-       down_req->creds = req->creds;
 
        down_req->async.context = ac;
        down_req->async.callback = kludge_acl_async_callback;
index 0be0fff0ff1e6c9c4acfb9b65e7f6a6c53ffc39f..bdf1bcc27a6f4d42d9a00f28b35770bc6e41d1a5 100644 (file)
@@ -1175,7 +1175,6 @@ static int build_domain_data_request(struct ph_async_context *ac,
        }
        ac->dom_req->op.search.attrs = attrs;
        ac->dom_req->controls = NULL;
-       ac->dom_req->creds = ac->orig_req->creds;
        ac->dom_req->async.context = ac;
        ac->dom_req->async.callback = get_domain_data_callback;
        ac->dom_req->async.timeout = ac->orig_req->async.timeout;
@@ -1507,7 +1506,6 @@ static int password_hash_mod_async_search_self(struct ldb_async_handle *h) {
        }
        ac->search_req->op.search.attrs = NULL;
        ac->search_req->controls = NULL;
-       ac->search_req->creds = ac->orig_req->creds;
        ac->search_req->async.context = ac;
        ac->search_req->async.callback = get_self_callback;
        ac->search_req->async.timeout = ac->orig_req->async.timeout;
index 892a98db12d2e38dda75d13a2fa04a5844eda924..7e408264ec1792529fdc64d074d7b9573f481662 100644 (file)
@@ -232,7 +232,6 @@ static int rootdse_search_async(struct ldb_module *module, struct ldb_request *r
        }
        down_req->op.search.attrs = req->op.search.attrs;
        down_req->controls = req->controls;
-       down_req->creds = req->creds;
 
        down_req->async.context = ac;
        down_req->async.callback = rootdse_async_callback;
index f3480014561813a68076266d953570eca9ce1e33..28b9728d0adb3d031ec67a8d20d23d4fcf03d652 100644 (file)
@@ -444,7 +444,6 @@ int ldb_search(struct ldb_context *ldb,
 
        req->op.search.attrs = attrs;
        req->controls = NULL;
-       req->creds = NULL;
        req->async.context = res;
        req->async.callback = ldb_search_callback;
        req->async.timeout = 600; /* 10 minutes */
@@ -512,7 +511,6 @@ int ldb_add(struct ldb_context *ldb,
        req->operation = LDB_ASYNC_ADD;
        req->op.add.message = message;
        req->controls = NULL;
-       req->creds = NULL;
        req->async.context = NULL;
        req->async.callback = NULL;
        req->async.timeout = 600; /* 10 minutes */
@@ -545,7 +543,6 @@ int ldb_modify(struct ldb_context *ldb,
        req->operation = LDB_ASYNC_MODIFY;
        req->op.add.message = message;
        req->controls = NULL;
-       req->creds = NULL;
        req->async.context = NULL;
        req->async.callback = NULL;
        req->async.timeout = 600; /* 10 minutes */
@@ -575,7 +572,6 @@ int ldb_delete(struct ldb_context *ldb, const struct ldb_dn *dn)
        req->operation = LDB_ASYNC_DELETE;
        req->op.del.dn = dn;
        req->controls = NULL;
-       req->creds = NULL;
        req->async.context = NULL;
        req->async.callback = NULL;
        req->async.timeout = 600; /* 10 minutes */
@@ -605,7 +601,6 @@ int ldb_rename(struct ldb_context *ldb, const struct ldb_dn *olddn, const struct
        req->op.rename.olddn = olddn;
        req->op.rename.newdn = newdn;
        req->controls = NULL;
-       req->creds = NULL;
        req->async.context = NULL;
        req->async.callback = NULL;
        req->async.timeout = 600; /* 10 minutes */
index 9f0613feaadaa4ab1beb48e76fa86f43e81f2220..8f21aec046afdf63ef3d788368425cf99c2bd073 100644 (file)
@@ -561,8 +561,6 @@ struct ldb_control {
        void *data;
 };
 
-struct ldb_credentials;
-
 enum ldb_request_type {
        LDB_REQ_SEARCH,
        LDB_REQ_ADD,
@@ -659,7 +657,6 @@ struct ldb_request {
        } op;
 
        struct ldb_control **controls;
-       struct ldb_credentials *creds;
 
        struct {
                void *context;
index 3a29d3f2664349d15d86379cc98ccd170dc88656..884616abdd4282362396bdcfab8be295f3dac055 100644 (file)
@@ -117,7 +117,6 @@ static int asq_search_sync(struct ldb_module *module, struct ldb_control *contro
                return LDB_ERR_OPERATIONS_ERROR;
        base_attrs[1] = NULL;
        base_req->op.search.attrs = (const char * const *)base_attrs;
-       base_req->creds = req->creds;
 
        ret = ldb_request(module->ldb, base_req);
 
@@ -154,7 +153,6 @@ static int asq_search_sync(struct ldb_module *module, struct ldb_control *contro
                exp_req->op.search.scope = LDB_SCOPE_BASE;
                exp_req->op.search.tree = req->op.search.tree;
                exp_req->op.search.attrs = req->op.search.attrs;
-               exp_req->creds = req->creds;
 
                ret = ldb_request(module->ldb, exp_req);
 
@@ -416,7 +414,6 @@ static int asq_search(struct ldb_module *module, struct ldb_request *req)
                return LDB_ERR_OPERATIONS_ERROR;
        base_attrs[1] = NULL;
        ac->base_req->op.search.attrs = (const char * const *)base_attrs;
-       ac->base_req->creds = req->creds;
 
        ac->base_req->async.context = ac;
        ac->base_req->async.callback = asq_base_callback;
@@ -470,7 +467,6 @@ static int asq_async_requests(struct ldb_async_handle *handle) {
                ac->reqs[i]->op.search.scope = LDB_SCOPE_BASE;
                ac->reqs[i]->op.search.tree = ac->base_req->op.search.tree;
                ac->reqs[i]->op.search.attrs = ac->req_attrs;
-               ac->reqs[i]->creds = ac->base_req->creds;
 
                ac->reqs[i]->async.context = ac;
                ac->reqs[i]->async.callback = asq_reqs_callback;
index b47adf06529caf3ed296c26a74731ff1d4728bf0..084105fd85d1084a6264e814000aee1295e8c2d3 100644 (file)
@@ -485,7 +485,6 @@ static int operational_search(struct ldb_module *module, struct ldb_request *req
        else down_req->op.search.attrs = req->op.search.attrs;
        
        down_req->controls = req->controls;
-       down_req->creds = req->creds;
 
        down_req->async.context = ac;
        down_req->async.callback = operational_async_callback;
index fab1ca5ac100596a170cc204e1a9e2325e8c064a..71b99184a1acc7c1ab9961c573c92c440dd2dcd0 100644 (file)
@@ -431,8 +431,6 @@ static int paged_search(struct ldb_module *module, struct ldb_request *req)
                        return LDB_ERR_OPERATIONS_ERROR;
                }
 
-               ac->store->req->creds = req->creds;
-
                ac->store->req->async.context = ac;
                ac->store->req->async.callback = paged_search_async_callback;
                ac->store->req->async.timeout = req->async.timeout;
index 9f03100dd00fafe822ef36c439d130ea6e09d6ac..6905417e954e77ecada7b6d5cf0a251c7a830801 100644 (file)
@@ -424,8 +424,6 @@ static int server_sort_search_async(struct ldb_module *module, struct ldb_reques
                return LDB_ERR_OPERATIONS_ERROR;
        }
 
-       ac->req->creds = req->creds;
-
        ac->req->async.context = ac;
        ac->req->async.callback = server_sort_search_async_callback;
        ac->req->async.timeout = req->async.timeout;
index ba65df49e878baa414b77f81a53fceb3b16a2a81..3378ade244cd9af50eee05466559603e69421cf2 100644 (file)
@@ -224,7 +224,6 @@ static int do_search(struct ldb_context *ldb,
        if (req->op.search.tree == NULL) return -1;
        req->op.search.attrs = attrs;
        req->controls = actx->req_ctrls;
-       req->creds = NULL;
        req->async.context = actx;
        req->async.callback = &search_callback;
        req->async.timeout = 3600; /* TODO: make this settable by command line */