summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-12-08 02:25:25 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-12-08 02:25:25 +0000
commit22a76a063213bdc514816440d3838e145c4ec340 (patch)
tree49a9a5844d384c5c26c73f93832f29b4ed6579c1
parent3c64bd4c509eebf6fc9bd101a405fbff651ba184 (diff)
downloadsamba-22a76a063213bdc514816440d3838e145c4ec340.tar.gz
samba-22a76a063213bdc514816440d3838e145c4ec340.tar.bz2
samba-22a76a063213bdc514816440d3838e145c4ec340.zip
Fix segfault, and add a comment.
(This used to be commit ff91131ef9b384765de3e4f22202d1e493f02efc)
-rw-r--r--source3/auth/auth_server.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/auth/auth_server.c b/source3/auth/auth_server.c
index 8d9b9f9819..7e43d529d2 100644
--- a/source3/auth/auth_server.c
+++ b/source3/auth/auth_server.c
@@ -142,11 +142,14 @@ static DATA_BLOB auth_get_challenge_server(void **my_private_data, const struct
if (cli) {
DEBUG(3,("using password server validation\n"));
+
if ((cli->sec_mode & 2) == 0) {
/* We can't work with unencrypted password servers
unless 'encrypt passwords = no' */
DEBUG(5,("make_auth_info_server: Server is unencrypted, no challenge available..\n"));
-
+
+ /* However, it is still a perfectly fine connection
+ to pass that unencrypted password over */
*my_private_data = (void *)cli;
return data_blob(NULL, 0);
@@ -204,7 +207,7 @@ static NTSTATUS check_smbserver_security(void *my_private_data,
}
if (!cli || !cli->initialised) {
- DEBUG(1,("password server %s is not connected\n", cli->desthost));
+ DEBUG(1,("password server is not connected (cli not initilised)\n"));
return NT_STATUS_LOGON_FAILURE;
}