svn commit: samba r10156 - in trunk/source/rpc_server: .
jra at samba.org
jra at samba.org
Mon Sep 12 01:00:07 GMT 2005
Author: jra
Date: 2005-09-12 01:00:06 +0000 (Mon, 12 Sep 2005)
New Revision: 10156
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=10156
Log:
Enable me to identify what's going wrong with the auth2
(it's failure to find a machine account).
Jeremy.
Modified:
trunk/source/rpc_server/srv_netlog_nt.c
Changeset:
Modified: trunk/source/rpc_server/srv_netlog_nt.c
===================================================================
--- trunk/source/rpc_server/srv_netlog_nt.c 2005-09-12 00:29:37 UTC (rev 10155)
+++ trunk/source/rpc_server/srv_netlog_nt.c 2005-09-12 01:00:06 UTC (rev 10156)
@@ -380,7 +380,14 @@
fstring remote_machine;
DOM_CHAL srv_chal_out;
+ rpcstr_pull(mach_acct, q_u->clnt_id.uni_acct_name.buffer,sizeof(fstring),
+ q_u->clnt_id.uni_acct_name.uni_str_len*2,0);
+ rpcstr_pull(remote_machine, q_u->clnt_id.uni_comp_name.buffer,sizeof(fstring),
+ q_u->clnt_id.uni_comp_name.uni_str_len*2,0);
+
if (!p->dc || !p->dc->challenge_sent) {
+ DEBUG(0,("_net_auth2: no challenge sent to client %s\n",
+ remote_machine ));
return NT_STATUS_ACCESS_DENIED;
}
@@ -388,15 +395,16 @@
((q_u->clnt_flgs.neg_flags & NETLOGON_NEG_SCHANNEL) == 0) ) {
/* schannel must be used, but client did not offer it. */
+ DEBUG(0,("_net_auth2: schannel required but client failed "
+ "to offer it. Client was %s\n",
+ mach_acct ));
return NT_STATUS_ACCESS_DENIED;
}
- rpcstr_pull(mach_acct, q_u->clnt_id.uni_acct_name.buffer,sizeof(fstring),
- q_u->clnt_id.uni_acct_name.uni_str_len*2,0);
- rpcstr_pull(remote_machine, q_u->clnt_id.uni_comp_name.buffer,sizeof(fstring),
- q_u->clnt_id.uni_comp_name.uni_str_len*2,0);
-
if (get_md4pw((char *)p->dc->mach_pw, mach_acct)) {
+ DEBUG(0,("_net_auth2: failed to get machine password for "
+ "account %s\n",
+ mach_acct ));
return NT_STATUS_ACCESS_DENIED;
}
More information about the samba-cvs
mailing list