Blame SOURCES/update_log_invalid_dst.patch

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