r1687: Fix bogus requirement for SMB signing on guest connections.
[samba.git] / 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;
 }