From ee762f9b709224a7dc7460fc535ee992045168b8 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sat, 4 Apr 2009 12:21:18 -0400 Subject: Split modules types in Identity and Authenticator The same module may implement both types, but initializatrion will be nonetheless performed separately, once for the identity module and once for the authenticator module. Also change the proxy module to retireve the pam target name from the domain configuration so that it is possibile to create per-domain pam stacks. With this modification it is actually possibile to use normal nss and pam modules to perform a successful authentication (tested only with sudo so far) Update exmples. --- server/providers/ldap_be.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'server/providers/ldap_be.c') diff --git a/server/providers/ldap_be.c b/server/providers/ldap_be.c index 9fe256404..2c075bd06 100644 --- a/server/providers/ldap_be.c +++ b/server/providers/ldap_be.c @@ -592,7 +592,7 @@ static void sdap_pam_handler(struct be_req *req) pd = talloc_get_type(req->req_data, struct pam_data); - sdap_ctx = talloc_get_type(req->be_ctx->pvt_data, struct sdap_ctx); + sdap_ctx = talloc_get_type(req->be_ctx->pvt_auth_data, struct sdap_ctx); lr = talloc(req, struct sdap_req); @@ -628,15 +628,15 @@ static void sdap_shutdown(struct be_req *req) req->fn(req, EOK, NULL); } -struct be_mod_ops sdap_mod_ops = { - .check_online = NULL, - .get_account_info = NULL, +struct be_auth_ops sdap_mod_ops = { .pam_handler = sdap_pam_handler, .finalize = sdap_shutdown }; -int sssm_ldap_init(struct be_ctx *bectx, struct be_mod_ops **ops, void **pvt_data) +int sssm_ldap_auth_init(struct be_ctx *bectx, + struct be_auth_ops **ops, + void **pvt_data) { struct sdap_ctx *ctx; char *ldap_uri; -- cgit