svn commit: samba r9242 - in branches/SAMBA_3_0/source/rpc_server: .
jmcd at samba.org
jmcd at samba.org
Thu Aug 11 19:45:53 GMT 2005
Author: jmcd
Date: 2005-08-11 19:45:53 +0000 (Thu, 11 Aug 2005)
New Revision: 9242
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9242
Log:
Fix my fix for #2953. I'd moved too much code until after we verify the user,
causing netlogon to return an invalid response for failed interactive logons.
Modified:
branches/SAMBA_3_0/source/rpc_server/srv_netlog_nt.c
Changeset:
Modified: branches/SAMBA_3_0/source/rpc_server/srv_netlog_nt.c
===================================================================
--- branches/SAMBA_3_0/source/rpc_server/srv_netlog_nt.c 2005-08-11 18:23:01 UTC (rev 9241)
+++ branches/SAMBA_3_0/source/rpc_server/srv_netlog_nt.c 2005-08-11 19:45:53 UTC (rev 9242)
@@ -606,6 +606,9 @@
if (!(p->dc.authenticated && deal_with_creds(p->dc.sess_key, &p->dc.clnt_cred, &q_u->sam_id.client.cred, &srv_cred)))
return NT_STATUS_INVALID_HANDLE;
+ r_u->buffer_creds = 1; /* yes, we have valid server credentials */
+ memcpy(&r_u->srv_creds, &srv_cred, sizeof(r_u->srv_creds));
+
/* find the username */
switch (q_u->sam_id.logon_level) {
@@ -723,9 +726,6 @@
reseed_client_creds(&p->dc.clnt_cred, &q_u->sam_id.client.cred);
memcpy(&p->dc.srv_cred, &p->dc.clnt_cred, sizeof(p->dc.clnt_cred));
- r_u->buffer_creds = 1; /* yes, we have valid server credentials */
- memcpy(&r_u->srv_creds, &srv_cred, sizeof(r_u->srv_creds));
-
if (server_info->guest) {
/* We don't like guest domain logons... */
DEBUG(5,("_net_sam_logon: Attempted domain logon as GUEST denied.\n"));
More information about the samba-cvs
mailing list