summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-08-10 04:56:44 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:57:49 -0500
commit1c06bf6731c5e115e4087d9ee33c1025e4961d75 (patch)
treeb52479f933d4044283334fcc36dd7e87da419b22
parent6ffaf57fe715419bf3aa677027548161b642d17e (diff)
downloadsamba-1c06bf6731c5e115e4087d9ee33c1025e4961d75.tar.gz
samba-1c06bf6731c5e115e4087d9ee33c1025e4961d75.tar.bz2
samba-1c06bf6731c5e115e4087d9ee33c1025e4961d75.zip
r1687: Fix bogus requirement for SMB signing on guest connections.
Andrew Bartlett (This used to be commit 3520af0f3d8826ac52a7fb6a658ed0924e51bbf7)
-rw-r--r--source4/smb_server/sesssetup.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/smb_server/sesssetup.c b/source4/smb_server/sesssetup.c
index 3e332cfbb9..cb0b3a6c5c 100644
--- a/source4/smb_server/sesssetup.c
+++ b/source4/smb_server/sesssetup.c
@@ -136,7 +136,10 @@ static NTSTATUS sesssetup_nt1(struct smbsrv_request *req, union smb_sesssetup *s
&sess->nt1.out.domain);
req->session = smbsrv_session_find(req->smb_conn, sess->nt1.out.vuid);
- srv_setup_signing(req->smb_conn, &session_info->session_key, &sess->nt1.in.password2);
+ if (!session_info->server_info->guest) {
+ srv_setup_signing(req->smb_conn, &session_info->session_key, &sess->nt1.in.password2);
+ }
+
return NT_STATUS_OK;
}