From 6aca93fb4d5d39a100b900a8c297d08629407960 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 23 Jun 2009 23:00:08 -0400 Subject: Rename sysdb_req to sysdb_handle. This sysdb_req has always really been a transaction handle and not a request. This is part of a set of patches to rewrite transaction support in sysdb to a hopefully better API, that will also let use use tevent_req async style to manipulate our cache. --- server/providers/ldap/ldap_auth.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'server/providers/ldap/ldap_auth.c') diff --git a/server/providers/ldap/ldap_auth.c b/server/providers/ldap/ldap_auth.c index cd3902f0..89e301aa 100644 --- a/server/providers/ldap/ldap_auth.c +++ b/server/providers/ldap/ldap_auth.c @@ -656,7 +656,7 @@ done: } struct sdap_pw_cache { - struct sysdb_req *sysreq; + struct sysdb_handle *handle; struct sdap_req *lr; }; @@ -674,13 +674,13 @@ static void sdap_cache_pw_callback(void *pvt, int error, error, strerror(error))); } - sysdb_transaction_done(data->sysreq, error); + sysdb_transaction_done(data->handle, error); /* password caching failures are not fatal errors */ sdap_reply(data->lr->req, data->lr->pd->pam_status, NULL); } -static void sdap_cache_pw_op(struct sysdb_req *req, void *pvt) +static void sdap_cache_pw_op(struct sysdb_handle *handle, void *pvt) { struct sdap_pw_cache *data = talloc_get_type(pvt, struct sdap_pw_cache); struct pam_data *pd; @@ -688,7 +688,7 @@ static void sdap_cache_pw_op(struct sysdb_req *req, void *pvt) char *password; int ret; - data->sysreq = req; + data->handle = handle; pd = data->lr->pd; username = pd->user; @@ -715,7 +715,7 @@ static void sdap_cache_pw_op(struct sysdb_req *req, void *pvt) return; } - ret = sysdb_set_cached_password(req, + ret = sysdb_set_cached_password(handle, data->lr->req->be_ctx->domain, username, password, -- cgit