Blame SOURCES/update_log_invalid_dst.patch

198568
commit 93faba4505b2c02c4885d33f785db97efd6f9c1b
198568
Author: nneul at neulinger.org <nneul@neulinger.org>
198568
Date:   Fri Oct 6 12:08:58 2017 +0000
198568
198568
    Update log msg for Invalid Destination and Invalid Audience to show both the expected and received values.
198568
198568
diff --git a/auth_mellon_handler.c b/auth_mellon_handler.c
198568
index afb3195..030abe7 100644
198568
--- a/auth_mellon_handler.c
198568
+++ b/auth_mellon_handler.c
198568
@@ -1461,8 +1461,8 @@ static int am_validate_conditions(request_rec *r,
198568
 
198568
         if (ar->Audience == NULL || strcmp(ar->Audience, providerID)) {
198568
             ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
198568
-                          "Invalid Audience in Conditions. Should be: %s",
198568
-                          providerID);
198568
+                          "Invalid Audience in Conditions. Should be '%s', but was '%s'",
198568
+                          providerID, ar->Audience ? ar->Audience : "");
198568
             return HTTP_BAD_REQUEST;
198568
         }
198568
     }
198568
@@ -1791,8 +1791,8 @@ static int am_handle_reply_common(request_rec *r, LassoLogin *login,
198568
     if (response->parent.Destination) {
198568
         if (strcmp(response->parent.Destination, url)) {
198568
             ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
198568
-                          "Invalid Destination on Response. Should be: %s",
198568
-                          url);
198568
+                          "Invalid Destination on Response. Should be '%s', but was '%s'",
198568
+                          url, response->parent.Destination);
198568
             lasso_login_destroy(login);
198568
             return HTTP_BAD_REQUEST;
198568
         }