summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-09-22 20:48:10 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-09-27 12:51:40 +0200
commite2f37d4488c45921e87f07d8a911ac7dd5b94f53 (patch)
treeafb177f48c8ebb3a2a681f66f8853cac00480434 /src
parent2db23c67f1bba5f573e6109ca46c8f63659a9ac4 (diff)
downloadsssd-e2f37d4488c45921e87f07d8a911ac7dd5b94f53.tar.gz
sssd-e2f37d4488c45921e87f07d8a911ac7dd5b94f53.tar.bz2
sssd-e2f37d4488c45921e87f07d8a911ac7dd5b94f53.zip
KRB5: Use the correct domain when authenticating with cached password
Diffstat (limited to 'src')
-rw-r--r--src/providers/krb5/krb5_auth.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/providers/krb5/krb5_auth.c b/src/providers/krb5/krb5_auth.c
index 52e230ca..51c0d739 100644
--- a/src/providers/krb5/krb5_auth.c
+++ b/src/providers/krb5/krb5_auth.c
@@ -757,8 +757,8 @@ static void krb5_auth_resolve_done(struct tevent_req *subreq)
if (dp_opt_get_bool(kr->krb5_ctx->opts,
KRB5_STORE_PASSWORD_IF_OFFLINE)) {
krb5_auth_cache_creds(state->kr->krb5_ctx,
- state->be_ctx->domain->sysdb,
- state->be_ctx->domain,
+ state->domain->sysdb,
+ state->domain,
state->be_ctx->cdb,
kr->pd, kr->uid,
&state->pam_status, &state->dp_err);
@@ -1103,8 +1103,8 @@ static void krb5_auth_done(struct tevent_req *subreq)
if (dp_opt_get_bool(kr->krb5_ctx->opts,
KRB5_STORE_PASSWORD_IF_OFFLINE)) {
krb5_auth_cache_creds(state->kr->krb5_ctx,
- state->be_ctx->domain->sysdb,
- state->be_ctx->domain,
+ state->domain->sysdb,
+ state->domain,
state->be_ctx->cdb,
state->pd, state->kr->uid,
&state->pam_status, &state->dp_err);