r1687: Fix bogus requirement for SMB signing on guest connections.
authorAndrew Bartlett <abartlet@samba.org>
Tue, 10 Aug 2004 04:56:44 +0000 (04:56 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:57:49 +0000 (12:57 -0500)
Andrew Bartlett

source/smb_server/sesssetup.c

index 3e332cfbb90872527e5de5dd21f85ca2e63969f2..cb0b3a6c5c7161eeea9688a56cefeaadec1572e0 100644 (file)
@@ -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;
 }