summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-11-22 06:17:46 +0000
committerGerald Carter <jerry@samba.org>2003-11-22 06:17:46 +0000
commit52c1973f39f4c4161097843fcf395e0102531575 (patch)
tree11d96a85560fe801992bdb5747d6c0fc49ca7d20 /source
parentcb12d519cc40b964d022886538044e8613931199 (diff)
downloadsamba-52c1973f39f4c4161097843fcf395e0102531575.tar.gz
debug and swat fixes from 3.0
Diffstat (limited to 'source')
-rw-r--r--source/libsmb/trusts_util.c1
-rw-r--r--source/web/cgi.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/source/libsmb/trusts_util.c b/source/libsmb/trusts_util.c
index c18641bc845..2c6eb1b55a8 100644
--- a/source/libsmb/trusts_util.c
+++ b/source/libsmb/trusts_util.c
@@ -181,6 +181,7 @@ BOOL enumerate_domain_trusts( TALLOC_CTX *mem_ctx, const char *domain,
done:
/* cleanup */
if (cli) {
+ DEBUG(10,("enumerate_domain_trusts: shutting down connection...\n"));
cli_nt_session_close( cli );
cli_shutdown( cli );
}
diff --git a/source/web/cgi.c b/source/web/cgi.c
index 49a8fa92de4..07e3ee38fbf 100644
--- a/source/web/cgi.c
+++ b/source/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);