summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-06-11 00:56:44 +0200
committerGünther Deschner <gd@samba.org>2008-06-11 10:46:26 +0200
commit2816e86b06003365c1f09ebcb9a9871cd6a97d3f (patch)
treedd4c4b899afe86725d86f1a218cb9bbf4a0fd3ce /source3/utils
parent8e240c460b8cd290acd70fa286811d92cc7d24b8 (diff)
downloadsamba-2816e86b06003365c1f09ebcb9a9871cd6a97d3f.tar.gz
samba-2816e86b06003365c1f09ebcb9a9871cd6a97d3f.tar.bz2
samba-2816e86b06003365c1f09ebcb9a9871cd6a97d3f.zip
net: remove some dead code.
Guenther (This used to be commit cdd1ce797aefa07780a73d0793c450e2d96f17bb)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_rpc_samsync.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/source3/utils/net_rpc_samsync.c b/source3/utils/net_rpc_samsync.c
index bbba2c42e3..bd8118ab8e 100644
--- a/source3/utils/net_rpc_samsync.c
+++ b/source3/utils/net_rpc_samsync.c
@@ -408,35 +408,6 @@ NTSTATUS rpc_samdump_internals(struct net_context *c,
int argc,
const char **argv)
{
-#if 0
- /* net_rpc.c now always tries to create an schannel pipe.. */
-
- NTSTATUS nt_status = NT_STATUS_UNSUCCESSFUL;
- uchar trust_password[16];
- uint32_t neg_flags = NETLOGON_NEG_AUTH2_ADS_FLAGS;
- uint32 sec_channel_type = 0;
-
- if (!secrets_fetch_trust_account_password(domain_name,
- trust_password,
- NULL, &sec_channel_type)) {
- DEBUG(0,("Could not fetch trust account password\n"));
- goto fail;
- }
-
- nt_status = rpccli_netlogon_setup_creds(pipe_hnd,
- cli->desthost,
- domain_name,
- global_myname(),
- trust_password,
- sec_channel_type,
- &neg_flags);
-
- if (!NT_STATUS_IS_OK(nt_status)) {
- DEBUG(0,("Error connecting to NETLOGON pipe\n"));
- goto fail;
- }
-#endif
-
dump_database(pipe_hnd, SAM_DATABASE_DOMAIN);
dump_database(pipe_hnd, SAM_DATABASE_BUILTIN);
dump_database(pipe_hnd, SAM_DATABASE_PRIVS);