Blame SOURCES/Use-the-canonical-client-principal-name-for-OTP.patch

963210
From 685698f8d33810ce085da4d75d1d8febe5323fd3 Mon Sep 17 00:00:00 2001
963210
From: Matt Rogers <mrogers@redhat.com>
963210
Date: Wed, 5 Apr 2017 16:48:55 -0400
963210
Subject: [PATCH] Use the canonical client principal name for OTP
963210
963210
In the OTP module, when constructing the RADIUS request, use the
963210
canonicalized client principal (using the new client_name kdcpreauth
963210
callback) instead of the request client principal.
963210
963210
ticket: 8571 (new)
963210
(cherry picked from commit 6411398e35e343cdc4d2d103b079c4d3b9031f7e)
963210
---
963210
 src/plugins/preauth/otp/main.c | 3 ++-
963210
 1 file changed, 2 insertions(+), 1 deletion(-)
963210
963210
diff --git a/src/plugins/preauth/otp/main.c b/src/plugins/preauth/otp/main.c
963210
index 2649e9a90..a1b681682 100644
963210
--- a/src/plugins/preauth/otp/main.c
963210
+++ b/src/plugins/preauth/otp/main.c
963210
@@ -331,7 +331,8 @@ otp_verify(krb5_context context, krb5_data *req_pkt, krb5_kdc_req *request,
963210
 
963210
     /* Send the request. */
963210
     otp_state_verify((otp_state *)moddata, cb->event_context(context, rock),
963210
-                     request->client, config, req, on_response, rs);
963210
+                     cb->client_name(context, rock), config, req, on_response,
963210
+                     rs);
963210
     cb->free_string(context, rock, config);
963210
 
963210
     k5_free_pa_otp_req(context, req);