summaryrefslogtreecommitdiff
path: root/src/providers/ldap/ldap_access.c
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-01-11 18:13:36 -0500
committerJakub Hrozek <jhrozek@redhat.com>2013-01-21 22:17:34 +0100
commitcbaba2f47da96c4191971bce86f03afb3f88864a (patch)
treea599a9c3680e4476d975ea42ca163716f1ee327b /src/providers/ldap/ldap_access.c
parent03abdaa21ecf562b714f204ca42379ff08626f75 (diff)
downloadsssd-cbaba2f47da96c4191971bce86f03afb3f88864a.tar.gz
sssd-cbaba2f47da96c4191971bce86f03afb3f88864a.tar.bz2
sssd-cbaba2f47da96c4191971bce86f03afb3f88864a.zip
Add be_req_get_data() helper funciton.
In preparation for making struct be_req opaque.
Diffstat (limited to 'src/providers/ldap/ldap_access.c')
-rw-r--r--src/providers/ldap/ldap_access.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/providers/ldap/ldap_access.c b/src/providers/ldap/ldap_access.c
index 5ab17abd..5a8e12f0 100644
--- a/src/providers/ldap/ldap_access.c
+++ b/src/providers/ldap/ldap_access.c
@@ -31,7 +31,7 @@
static void sdap_access_reply(struct be_req *be_req, int pam_status)
{
struct pam_data *pd;
- pd = talloc_get_type(be_req->req_data, struct pam_data);
+ pd = talloc_get_type(be_req_get_data(be_req), struct pam_data);
pd->pam_status = pam_status;
if (pam_status == PAM_SUCCESS || pam_status == PAM_PERM_DENIED) {
@@ -49,7 +49,7 @@ void sdap_pam_access_handler(struct be_req *breq)
struct tevent_req *req;
struct sdap_access_ctx *access_ctx;
- pd = talloc_get_type(breq->req_data, struct pam_data);
+ pd = talloc_get_type(be_req_get_data(breq), struct pam_data);
access_ctx =
talloc_get_type(be_ctx->bet_info[BET_ACCESS].pvt_bet_data,