summaryrefslogtreecommitdiffstats
path: root/server/providers/ldap/ldap_auth.c
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2009-07-14 21:12:30 +0200
committerSimo Sorce <ssorce@redhat.com>2009-07-20 09:49:54 -0400
commitc0a1d64228042c3d4bbf62447a49d085fd30fda1 (patch)
tree3a823b5bdbd50c86cd040b25ccbef5973c00197c /server/providers/ldap/ldap_auth.c
parent686a0778e173aa19a8136672e786281fd69cdeb0 (diff)
downloadsssd-c0a1d64228042c3d4bbf62447a49d085fd30fda1.tar.gz
sssd-c0a1d64228042c3d4bbf62447a49d085fd30fda1.tar.xz
sssd-c0a1d64228042c3d4bbf62447a49d085fd30fda1.zip
add infrastructure to handle new backend targets
Diffstat (limited to 'server/providers/ldap/ldap_auth.c')
-rw-r--r--server/providers/ldap/ldap_auth.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/server/providers/ldap/ldap_auth.c b/server/providers/ldap/ldap_auth.c
index e36338577..2c530325b 100644
--- a/server/providers/ldap/ldap_auth.c
+++ b/server/providers/ldap/ldap_auth.c
@@ -322,7 +322,7 @@ static void sdap_pam_auth_send(struct be_req *breq)
struct tevent_req *subreq;
struct pam_data *pd;
- ctx = talloc_get_type(breq->be_ctx->pvt_auth_data, struct sdap_auth_ctx);
+ ctx = talloc_get_type(breq->be_ctx->bet_info[BET_AUTH].pvt_bet_data, struct sdap_auth_ctx);
pd = talloc_get_type(breq->req_data, struct pam_data);
pd->pam_status = PAM_SYSTEM_ERR;
@@ -447,13 +447,14 @@ static void sdap_shutdown(struct be_req *req)
req->fn(req, EOK, NULL);
}
-struct be_auth_ops sdap_auth_ops = {
- .pam_handler = sdap_pam_auth_send,
+struct bet_ops sdap_auth_ops = {
+ .check_online = NULL,
+ .handler = sdap_pam_auth_send,
.finalize = sdap_shutdown
};
int sssm_ldap_auth_init(struct be_ctx *bectx,
- struct be_auth_ops **ops,
+ struct bet_ops **ops,
void **pvt_data)
{
int ldap_opt_x_tls_require_cert;