summaryrefslogtreecommitdiff
path: root/auth/ntlmssp
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-01-31 18:14:19 +1100
committerStefan Metzmacher <metze@samba.org>2012-02-17 10:48:09 +0100
commitb0aa49e9a3238b6395be78c2de101f2b98387686 (patch)
tree4a199a8164047bb8a6acb65e2320547ed8237917 /auth/ntlmssp
parent52ac479764e85296a6a6100d143104d78c51aa8b (diff)
downloadsamba-b0aa49e9a3238b6395be78c2de101f2b98387686.tar.gz
samba-b0aa49e9a3238b6395be78c2de101f2b98387686.tar.bz2
samba-b0aa49e9a3238b6395be78c2de101f2b98387686.zip
auth: Cope with NO_USER_SESSION_KEY from security=server
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'auth/ntlmssp')
-rw-r--r--auth/ntlmssp/gensec_ntlmssp_server.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/auth/ntlmssp/gensec_ntlmssp_server.c b/auth/ntlmssp/gensec_ntlmssp_server.c
index fe93d0bfc2..f37f2e716e 100644
--- a/auth/ntlmssp/gensec_ntlmssp_server.c
+++ b/auth/ntlmssp/gensec_ntlmssp_server.c
@@ -238,8 +238,14 @@ NTSTATUS gensec_ntlmssp_session_info(struct gensec_security *gensec_security,
NT_STATUS_NOT_OK_RETURN(nt_status);
- return gensec_ntlmssp_session_key(gensec_security, *session_info,
- &(*session_info)->session_key);
+ nt_status = gensec_ntlmssp_session_key(gensec_security, *session_info,
+ &(*session_info)->session_key);
+ if (NT_STATUS_EQUAL(nt_status, NT_STATUS_NO_USER_SESSION_KEY)) {
+ (*session_info)->session_key = data_blob_null;
+ nt_status = NT_STATUS_OK;
+ }
+
+ return nt_status;
}
/**