diff options
author | Gerald Carter <jerry@samba.org> | 2003-11-22 06:16:01 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-11-22 06:16:01 +0000 |
commit | 7d9fb45339687de1cbc8a0749353c8dd7c13d870 (patch) | |
tree | a6d254a03afc30268fa50c94fe31e1ed91a2e49b | |
parent | 4f65a3bd0356dfbf295418790b795f1774d6c520 (diff) | |
download | samba-7d9fb45339687de1cbc8a0749353c8dd7c13d870.tar.gz samba-7d9fb45339687de1cbc8a0749353c8dd7c13d870.tar.bz2 samba-7d9fb45339687de1cbc8a0749353c8dd7c13d870.zip |
include WWW-Authenticate field in 401 response for bad auth attempt; bug 629
(This used to be commit 879d0f15ea260d61c56c5b841065ecb2f5ec26ca)
-rw-r--r-- | source3/web/cgi.c | 3 |
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); |