net: remove some dead code.
authorGünther Deschner <gd@samba.org>
Tue, 10 Jun 2008 22:56:44 +0000 (00:56 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 11 Jun 2008 08:46:26 +0000 (10:46 +0200)
Guenther
(This used to be commit cdd1ce797aefa07780a73d0793c450e2d96f17bb)

source3/utils/net_rpc_samsync.c

index bbba2c42e33a1f2282bd71ad0a558a141a3d89b5..bd8118ab8ed27d6c16585702426e215628d6d185 100644 (file)
@@ -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);