[Freeipa-devel] [PATCH] fixed some typos which prevented password caching
Sumit Bose
sbose at redhat.com
Wed Jul 8 12:38:12 UTC 2009
Hi,
with this patch offline authentication with the proxy backend should
work again.
bye,
Sumit
-------------- next part --------------
>From 1da1354949710e64dc1058c26a39787e12c38fe7 Mon Sep 17 00:00:00 2001
From: Sumit Bose <sbose at redhat.com>
Date: Wed, 8 Jul 2009 14:34:06 +0200
Subject: [PATCH] fixed some typos which prevented password caching
---
server/providers/proxy.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/server/providers/proxy.c b/server/providers/proxy.c
index 048f31f..58d52d5 100644
--- a/server/providers/proxy.c
+++ b/server/providers/proxy.c
@@ -268,6 +268,8 @@ static void proxy_pam_handler(struct be_req *req) {
return proxy_reply(req, EOK, NULL);
}
tevent_req_set_callback(treq, proxy_pam_handler_cache_done, req);
+
+ return;
}
proxy_reply(req, EOK, NULL);
@@ -385,8 +387,8 @@ static struct tevent_req *cache_password_send(TALLOC_CTX *mem_ctx,
talloc_set_destructor((TALLOC_CTX *)state->passwd,
password_destructor);
- req = sysdb_transaction_send(state, state->ev, sysdb);
- if (!req) {
+ subreq = sysdb_transaction_send(state, state->ev, sysdb);
+ if (!subreq) {
ret = ENOMEM;
goto fail;
}
@@ -408,7 +410,7 @@ static void cache_password_process(struct tevent_req *subreq)
struct cache_pw_state);
int ret;
- ret = sysdb_transaction_recv(req, state, &state->handle);
+ ret = sysdb_transaction_recv(subreq, state, &state->handle);
if (ret) {
tevent_req_error(req, ret);
return;
--
1.6.2.5
More information about the Freeipa-devel
mailing list