From 22a76a063213bdc514816440d3838e145c4ec340 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 8 Dec 2001 02:25:25 +0000 Subject: Fix segfault, and add a comment. (This used to be commit ff91131ef9b384765de3e4f22202d1e493f02efc) --- source3/auth/auth_server.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'source3/auth') 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; } -- cgit