diff options
author | Pavel Reichl <preichl@redhat.com> | 2015-10-19 13:00:44 -0400 |
---|---|---|
committer | Lukas Slebodnik <lslebodn@redhat.com> | 2015-10-20 09:39:42 +0200 |
commit | b1bc8836c82290238cf3bb32b27686d25e6226a8 (patch) | |
tree | 06e176541016724b3d41bb7b8065092c34261b01 | |
parent | 7388fc91bd6c22705e60632346ec815f4a4963f1 (diff) | |
download | sssd-b1bc8836c82290238cf3bb32b27686d25e6226a8.tar.gz sssd-b1bc8836c82290238cf3bb32b27686d25e6226a8.tar.xz sssd-b1bc8836c82290238cf3bb32b27686d25e6226a8.zip |
PAM: remove unused parameter cdb
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
-rw-r--r-- | src/responder/pam/pamsrv_cmd.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/responder/pam/pamsrv_cmd.c b/src/responder/pam/pamsrv_cmd.c index 2823f8133..e3dc1a326 100644 --- a/src/responder/pam/pamsrv_cmd.c +++ b/src/responder/pam/pamsrv_cmd.c @@ -1667,7 +1667,6 @@ static void pam_check_user_dp_callback(uint16_t err_maj, uint32_t err_min, static errno_t pam_is_last_online_login_fresh(struct sss_domain_info *domain, const char* user, - struct confdb_ctx *cdb, int cached_auth_timeout, bool *_result) { @@ -1723,8 +1722,7 @@ static bool pam_is_authtok_cachable(struct sss_auth_token *authtok) return cachable; } -static bool pam_can_user_cache_auth(struct confdb_ctx *cdb, - struct sss_domain_info *domain, +static bool pam_can_user_cache_auth(struct sss_domain_info *domain, int pam_cmd, struct sss_auth_token *authtok, const char* user, @@ -1739,7 +1737,7 @@ static bool pam_can_user_cache_auth(struct confdb_ctx *cdb, && pam_is_authtok_cachable(authtok) && pam_is_cmd_cachable(pam_cmd)) { - ret = pam_is_last_online_login_fresh(domain, user, cdb, + ret = pam_is_last_online_login_fresh(domain, user, domain->cached_auth_timeout, &result); if (ret != EOK) { @@ -1785,8 +1783,7 @@ static void pam_dom_forwarder(struct pam_auth_req *preq) return; } - if (pam_can_user_cache_auth(pctx->rctx->cdb, - preq->domain, + if (pam_can_user_cache_auth(preq->domain, preq->pd->cmd, preq->pd->authtok, preq->pd->user, |