]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Use the canonical client principal name for OTP 628/head
authorMatt Rogers <mrogers@redhat.com>
Wed, 5 Apr 2017 20:48:55 +0000 (16:48 -0400)
committerGreg Hudson <ghudson@mit.edu>
Thu, 6 Apr 2017 15:52:50 +0000 (11:52 -0400)
In the OTP module, when constructing the RADIUS request, use the
canonicalized client principal (using the new client_name kdcpreauth
callback) instead of the request client principal.

ticket: 8571 (new)

src/plugins/preauth/otp/main.c

index 2649e9a90d40ab4a70841bfec8e121cf0cc5ec8c..a1b6816824053eb9861092a2e2763e2ba5ade754 100644 (file)
@@ -331,7 +331,8 @@ otp_verify(krb5_context context, krb5_data *req_pkt, krb5_kdc_req *request,
 
     /* Send the request. */
     otp_state_verify((otp_state *)moddata, cb->event_context(context, rock),
-                     request->client, config, req, on_response, rs);
+                     cb->client_name(context, rock), config, req, on_response,
+                     rs);
     cb->free_string(context, rock, config);
 
     k5_free_pa_otp_req(context, req);