summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/web/cgi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/web/cgi.c b/source3/web/cgi.c
index 49a8fa92de..07e3ee38fb 100644
--- a/source3/web/cgi.c
+++ b/source3/web/cgi.c
@@ -355,7 +355,8 @@ static BOOL cgi_handle_authorization(char *line)
}
err:
- cgi_setup_error("401 Bad Authorization", "",
+ cgi_setup_error("401 Bad Authorization",
+ "WWW-Authenticate: Basic realm=\"SWAT\"\r\n",
"username or password incorrect");
passwd_free(&pass);