summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-05-30 11:46:34 +0200
committerVolker Lendecke <vl@samba.org>2008-05-30 11:46:34 +0200
commit4f0626ee0945a79c484746b3ab4beae9e01348c9 (patch)
tree1e68178f244d4db0d5096ab5da73e89520102cd9 /source3/auth
parentad00ecd3583af02dacdbb9d46881552b58467362 (diff)
downloadsamba-4f0626ee0945a79c484746b3ab4beae9e01348c9.tar.gz
samba-4f0626ee0945a79c484746b3ab4beae9e01348c9.tar.bz2
samba-4f0626ee0945a79c484746b3ab4beae9e01348c9.zip
Fix security=server, bug 5502
This has brown paper bag quality and is definitely needed for 3.2.0. Thanks to Orion Poplawski for reporting this! Volker (This used to be commit 3b31f8cce3703645a57778bc752bc9b9e853df5d)
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth_server.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/auth/auth_server.c b/source3/auth/auth_server.c
index b07884c49b..31d1d37fbf 100644
--- a/source3/auth/auth_server.c
+++ b/source3/auth/auth_server.c
@@ -270,13 +270,15 @@ static NTSTATUS check_smbserver_security(const struct auth_context *auth_context
const auth_usersupplied_info *user_info,
auth_serversupplied_info **server_info)
{
+ struct server_security_state *state = talloc_get_type_abort(
+ my_private_data, struct server_security_state);
struct cli_state *cli;
static bool tested_password_server = False;
static bool bad_password_server = False;
NTSTATUS nt_status = NT_STATUS_NOT_IMPLEMENTED;
bool locally_made_cli = False;
- cli = (struct cli_state *)my_private_data;
+ cli = state->cli;
if (cli) {
} else {
@@ -285,7 +287,7 @@ static NTSTATUS check_smbserver_security(const struct auth_context *auth_context
}
if (!cli || !cli->initialised) {
- DEBUG(1,("password server is not connected (cli not initilised)\n"));
+ DEBUG(1,("password server is not connected (cli not initialised)\n"));
return NT_STATUS_LOGON_FAILURE;
}