svn commit: samba r2657 - in branches/SAMBA_4_0/source/smb_server: .
tridge at samba.org
tridge at samba.org
Sun Sep 26 11:24:39 GMT 2004
Author: tridge
Date: 2004-09-26 11:24:39 +0000 (Sun, 26 Sep 2004)
New Revision: 2657
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/smb_server&rev=2657&nolog=1
Log:
if we are already fully authenticated in session setup then the vuid is ignored
Modified:
branches/SAMBA_4_0/source/smb_server/sesssetup.c
Changeset:
Modified: branches/SAMBA_4_0/source/smb_server/sesssetup.c
===================================================================
--- branches/SAMBA_4_0/source/smb_server/sesssetup.c 2004-09-26 07:44:15 UTC (rev 2656)
+++ branches/SAMBA_4_0/source/smb_server/sesssetup.c 2004-09-26 11:24:39 UTC (rev 2657)
@@ -209,18 +209,15 @@
vuid = SVAL(req->in.hdr,HDR_UID);
smb_sess = smbsrv_session_find(req->smb_conn, vuid);
- if (smb_sess) {
+ if (smb_sess && !smb_sess->session_info) {
if (!smb_sess->gensec_ctx) {
return NT_STATUS_INVALID_HANDLE;
}
- /* what is when the client is already successful authentificated? */
- if (smb_sess->session_info) {
- return NT_STATUS_ACCESS_DENIED;
- }
-
status = gensec_update(smb_sess->gensec_ctx, req, sess->spnego.in.secblob, &sess->spnego.out.secblob);
} else {
+ smb_sess = NULL;
+
status = gensec_server_start(req->smb_conn, &gensec_ctx);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(1, ("Failed to start GENSEC server code: %s\n", nt_errstr(status)));
More information about the samba-cvs
mailing list