summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2012-12-11 11:15:24 +0100
committerJakub Hrozek <jhrozek@redhat.com>2012-12-14 17:45:18 +0100
commit423c31916b73277e3ecd7cd50512f9520f91398e (patch)
treea368250226754be3f11344f87cce12ae1f31e924 /src
parent0f1998981de0a242b1400bb0dfc84a2952df50a6 (diff)
downloadsssd-423c31916b73277e3ecd7cd50512f9520f91398e.tar.gz
sssd-423c31916b73277e3ecd7cd50512f9520f91398e.tar.xz
sssd-423c31916b73277e3ecd7cd50512f9520f91398e.zip
let krb5_kpasswd failover work1.9.2-40
https://fedorahosted.org/sssd/ticket/1680 Bad service name (KERBEROS) was provided when setting port status, thus the port status never changed
Diffstat (limited to 'src')
-rw-r--r--src/providers/krb5/krb5_auth.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/providers/krb5/krb5_auth.c b/src/providers/krb5/krb5_auth.c
index a4bd631cb..fb37ad4f6 100644
--- a/src/providers/krb5/krb5_auth.c
+++ b/src/providers/krb5/krb5_auth.c
@@ -869,7 +869,7 @@ static void krb5_child_done(struct tevent_req *subreq)
/* ..which is unreachable by now.. */
if (res->msg_status == PAM_AUTHTOK_LOCK_BUSY) {
be_fo_set_port_status(state->be_ctx,
- state->krb5_ctx->service->name,
+ state->krb5_ctx->kpasswd_service->name,
kr->kpasswd_srv, PORT_NOT_WORKING);
/* ..try to resolve next kpasswd server */
if (krb5_next_kpasswd(req) == NULL) {
@@ -878,7 +878,7 @@ static void krb5_child_done(struct tevent_req *subreq)
return;
} else {
be_fo_set_port_status(state->be_ctx,
- state->krb5_ctx->service->name,
+ state->krb5_ctx->kpasswd_service->name,
kr->kpasswd_srv, PORT_WORKING);
}
}
@@ -978,7 +978,8 @@ static struct tevent_req *krb5_next_server(struct tevent_req *req)
case SSS_PAM_CHAUTHTOK:
case SSS_PAM_CHAUTHTOK_PRELIM:
if (state->kr->kpasswd_srv) {
- be_fo_set_port_status(state->be_ctx, state->krb5_ctx->service->name,
+ be_fo_set_port_status(state->be_ctx,
+ state->krb5_ctx->kpasswd_service->name,
state->kr->kpasswd_srv, PORT_NOT_WORKING);
next_req = krb5_next_kpasswd(req);
break;