svn commit: samba r10178 - in trunk/source/utils: .
jra at samba.org
jra at samba.org
Mon Sep 12 19:27:56 GMT 2005
Author: jra
Date: 2005-09-12 19:27:55 +0000 (Mon, 12 Sep 2005)
New Revision: 10178
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=10178
Log:
Stop error message on not finding saved machine account password
on domain join. Get closer to net rpc join working (still failing
with NT_STATUS_INVALID_COMPUTER_NAME but I'm working on it...).
Jeremy.
Modified:
trunk/source/utils/net_rpc.c
Changeset:
Modified: trunk/source/utils/net_rpc.c
===================================================================
--- trunk/source/utils/net_rpc.c 2005-09-12 18:29:16 UTC (rev 10177)
+++ trunk/source/utils/net_rpc.c 2005-09-12 19:27:55 UTC (rev 10178)
@@ -265,6 +265,15 @@
NTSTATUS result;
uint32 sec_channel_type;
+ pipe_hnd = cli_rpc_pipe_open_noauth(cli, PI_NETLOGON, &result);
+ if (!pipe_hnd) {
+ DEBUG(0,("rpc_oldjoin_internals: netlogon pipe open to machine %s failed. "
+ "error was %s\n",
+ cli->desthost,
+ nt_errstr(result) ));
+ return result;
+ }
+
/*
check what type of join - if the user want's to join as
a BDC, the server must agree that we are a BDC.
@@ -316,7 +325,7 @@
static int net_rpc_perform_oldjoin(int argc, const char **argv)
{
return run_rpc_command(NULL, PI_NETLOGON,
- NET_FLAGS_ANONYMOUS | NET_FLAGS_PDC,
+ NET_FLAGS_NO_PIPE | NET_FLAGS_ANONYMOUS | NET_FLAGS_PDC,
rpc_oldjoin_internals,
argc, argv);
}
More information about the samba-cvs
mailing list