diff options
author | Volker Lendecke <vlendec@samba.org> | 2003-04-09 15:54:17 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2003-04-09 15:54:17 +0000 |
commit | eaef0d8aeff1aa5a067679be3f17e08d7434e1e8 (patch) | |
tree | d207b494f1a8047562e92f41993e5334f58ef2c0 /source/utils/net_rpc_samsync.c | |
parent | 9d0a82078ce94367992a1bfb8cb7cac8e7e0f525 (diff) | |
download | samba-eaef0d8aeff1aa5a067679be3f17e08d7434e1e8.tar.gz samba-eaef0d8aeff1aa5a067679be3f17e08d7434e1e8.tar.xz samba-eaef0d8aeff1aa5a067679be3f17e08d7434e1e8.zip |
This is the netlogon schannel client code. Try a
rpcclient -S pdc -U% -c "samlogon user password"
and it should work with the schannel. Needs testing against platforms
different from NT4SP6.
Volker
Diffstat (limited to 'source/utils/net_rpc_samsync.c')
-rw-r--r-- | source/utils/net_rpc_samsync.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/source/utils/net_rpc_samsync.c b/source/utils/net_rpc_samsync.c index 9367404b354..f811d76f685 100644 --- a/source/utils/net_rpc_samsync.c +++ b/source/utils/net_rpc_samsync.c @@ -209,19 +209,17 @@ int rpc_samdump(int argc, const char **argv) return 1; } - if (!cli_nt_session_open(cli, PI_NETLOGON)) { - DEBUG(0,("Error connecting to NETLOGON pipe\n")); - goto fail; - } + fstrcpy(cli->domain, lp_workgroup()); - if (!secrets_fetch_trust_account_password(lp_workgroup(), trust_password, NULL)) { - d_printf("Could not retrieve domain trust secret\n"); + if (!secrets_fetch_trust_account_password(lp_workgroup(), + trust_password, + NULL)) { + DEBUG(0,("Could not fetch trust account password\n")); goto fail; } - - result = cli_nt_setup_creds(cli, SEC_CHAN_BDC, trust_password, &neg_flags, 2); - if (!NT_STATUS_IS_OK(result)) { - d_printf("Failed to setup BDC creds\n"); + + if (!cli_nt_open_netlogon(cli, trust_password, SEC_CHAN_BDC)) { + DEBUG(0,("Error connecting to NETLOGON pipe\n")); goto fail; } |