diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2009-05-28 11:37:20 +0200 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-05-28 15:40:56 -0400 |
commit | b57c9bc5c5c1374bc8c8fb0881c85ff2e02e113e (patch) | |
tree | b069b54b31dbf2df6a60a2143561dbabe6071aeb | |
parent | 8370c839486e7205e9131451e2ec04593e427e27 (diff) | |
download | sssd_unused-b57c9bc5c5c1374bc8c8fb0881c85ff2e02e113e.tar.gz sssd_unused-b57c9bc5c5c1374bc8c8fb0881c85ff2e02e113e.tar.xz sssd_unused-b57c9bc5c5c1374bc8c8fb0881c85ff2e02e113e.zip |
special-case NSS calls in PAM code
-rw-r--r-- | server/responder/pam/pamsrv_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/responder/pam/pamsrv_cmd.c b/server/responder/pam/pamsrv_cmd.c index 2494e100..1df947ad 100644 --- a/server/responder/pam/pamsrv_cmd.c +++ b/server/responder/pam/pamsrv_cmd.c @@ -478,7 +478,7 @@ static int pam_forwarder(struct cli_ctx *cctx, int pam_cmd) preq->pd->user, 0); } else { - preq->check_provider = (preq->domain->provider != NULL); + preq->check_provider = NEED_CHECK_PROVIDER(preq->domain->provider); ret = sysdb_getpwnam(preq, cctx->rctx->sysdb, preq->domain, preq->pd->user, @@ -665,7 +665,7 @@ static void pam_check_user_callback(void *ptr, int status, preq->pd->user, 0); } else { - preq->check_provider = (preq->domain->provider != NULL); + preq->check_provider = NEED_CHECK_PROVIDER(preq->domain->provider); ret = sysdb_getpwnam(preq, preq->cctx->rctx->sysdb, preq->domain, preq->pd->user, |