Skip to content

Commit 07b0d3c

Browse files
Downgrade missing auth headers ERROR to INFO
Signed-off-by: Robbie Harwood <[email protected]> Reviewed-by: Simo Sorce <[email protected]> Resolves: #155 Merges: #156
1 parent 5330fa4 commit 07b0d3c

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

src/mod_auth_gssapi.c

+15-2
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,19 @@ static const char *mag_err_text(enum mag_err_code err)
9292
}
9393
}
9494

95+
static void mag_post_info(request_rec *req, struct mag_config *cfg,
96+
enum mag_err_code err, const char *msg)
97+
{
98+
const char *text = NULL;
99+
100+
if (cfg->enverrs) {
101+
mag_publish_error(req, 0, 0, text ? text : msg, mag_err_text(err));
102+
}
103+
104+
ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, req, "%s %s", mag_err_text(err),
105+
text ? text : msg);
106+
}
107+
95108
static void mag_post_error(request_rec *req, struct mag_config *cfg,
96109
enum mag_err_code err, uint32_t maj, uint32_t min,
97110
const char *msg)
@@ -982,8 +995,8 @@ static int mag_auth(request_rec *req)
982995

983996
/* We can proceed only if we do have an auth header */
984997
if (!auth_header) {
985-
mag_post_error(req, cfg, MAG_NO_AUTH, 0, 0,
986-
"Client did not send any authentication headers");
998+
mag_post_info(req, cfg, MAG_NO_AUTH,
999+
"Client did not send any authentication headers");
9871000
goto done;
9881001
}
9891002

0 commit comments

Comments
 (0)