From e2f37d4488c45921e87f07d8a911ac7dd5b94f53 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Sun, 22 Sep 2013 20:48:10 +0200 Subject: KRB5: Use the correct domain when authenticating with cached password --- src/providers/krb5/krb5_auth.c | 8 ++++---- 1 file 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); -- cgit