summaryrefslogtreecommitdiffstats
path: root/source3/auth/auth_ntlmssp.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-12-30 10:07:32 +0100
committerGünther Deschner <gd@samba.org>2010-03-24 17:34:54 +0100
commiteca118614c1431855c88b9f43457c0d2d6502ebe (patch)
tree8e11f50553b49f532bff4dbcb1d0f402f7d86a38 /source3/auth/auth_ntlmssp.c
parent533830543f4282dfb13173dcf8ccf5e65f9d1ed4 (diff)
downloadsamba-eca118614c1431855c88b9f43457c0d2d6502ebe.tar.gz
samba-eca118614c1431855c88b9f43457c0d2d6502ebe.tar.xz
samba-eca118614c1431855c88b9f43457c0d2d6502ebe.zip
s3:ntlmssp: replace server_role by a server.is_standalone in ntlmssp_state
Inspired by the NTLMSSP merge work by Andrew Bartlett. metze Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/auth/auth_ntlmssp.c')
-rw-r--r--source3/auth/auth_ntlmssp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/auth/auth_ntlmssp.c b/source3/auth/auth_ntlmssp.c
index 88f0e69443..9eccebc564 100644
--- a/source3/auth/auth_ntlmssp.c
+++ b/source3/auth/auth_ntlmssp.c
@@ -184,7 +184,11 @@ NTSTATUS auth_ntlmssp_start(AUTH_NTLMSSP_STATE **auth_ntlmssp_state)
(*auth_ntlmssp_state)->ntlmssp_state->may_set_challenge = auth_ntlmssp_may_set_challenge;
(*auth_ntlmssp_state)->ntlmssp_state->set_challenge = auth_ntlmssp_set_challenge;
(*auth_ntlmssp_state)->ntlmssp_state->check_password = auth_ntlmssp_check_password;
- (*auth_ntlmssp_state)->ntlmssp_state->server_role = (enum server_types)lp_server_role();
+ if ((enum server_types)lp_server_role() == ROLE_STANDALONE) {
+ (*auth_ntlmssp_state)->ntlmssp_state->server.is_standalone = true;
+ } else {
+ (*auth_ntlmssp_state)->ntlmssp_state->server.is_standalone = false;
+ }
return NT_STATUS_OK;
}