summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Zeleny <jzeleny@redhat.com>2012-03-14 04:56:37 -0400
committerStephen Gallagher <sgallagh@redhat.com>2012-04-24 09:19:43 -0400
commit8a5d5947a640a7208fa8ed732676bf10ab451fbc (patch)
tree37bee081f50c9ee16121233fbd192d84f97983e9
parent6d485cdb11d3c2b8855a6380f759ae2df6e5c35b (diff)
downloadsssd-8a5d5947a640a7208fa8ed732676bf10ab451fbc.tar.gz
sssd-8a5d5947a640a7208fa8ed732676bf10ab451fbc.tar.bz2
sssd-8a5d5947a640a7208fa8ed732676bf10ab451fbc.zip
Carry sysdb context and domain info in be_req structure
-rw-r--r--src/providers/data_provider_be.c2
-rw-r--r--src/providers/dp_backend.h3
2 files changed, 5 insertions, 0 deletions
diff --git a/src/providers/data_provider_be.c b/src/providers/data_provider_be.c
index f550c4ea..345dab23 100644
--- a/src/providers/data_provider_be.c
+++ b/src/providers/data_provider_be.c
@@ -802,6 +802,8 @@ static int be_pam_handler(DBusMessage *message, struct sbus_connection *conn)
be_req->be_ctx = becli->bectx;
be_req->fn = be_pam_handler_callback;
be_req->pvt = reply;
+ be_req->domain = be_req->be_ctx->domain;
+ be_req->sysdb = be_req->be_ctx->sysdb;
dbus_error_init(&dbus_error);
diff --git a/src/providers/dp_backend.h b/src/providers/dp_backend.h
index cdb37a89..8357e85f 100644
--- a/src/providers/dp_backend.h
+++ b/src/providers/dp_backend.h
@@ -142,6 +142,9 @@ struct be_req {
void *pvt;
int restarts;
+
+ struct sss_domain_info *domain;
+ struct sysdb_ctx *sysdb;
};
struct be_acct_req {