just enough to get rpcclient to compile. Look for #if 0
authorGerald Carter <jerry@samba.org>
Fri, 23 Jun 2000 00:09:21 +0000 (00:09 +0000)
committerGerald Carter <jerry@samba.org>
Fri, 23 Jun 2000 00:09:21 +0000 (00:09 +0000)
blocks around a few unimplemented functions.  Also had to
add cli_reg.c to Makefile.in

--jerry
(This used to be commit 426c43fb5167b042682c22e67871e5ebadb4b769)

source3/Makefile.in
source3/rpcclient/cmd_netlogon.c
source3/rpcclient/cmd_samr.c
source3/rpcclient/display.c
source3/rpcclient/rpcclient.c

index f60dfb321a7f405a9f33132adcbf08eacd439cf0..eda3e7369f16a4b516fad05fa1add3aebf4f3295 100644 (file)
@@ -147,7 +147,8 @@ RPC_CLIENT_OBJ = \
                rpc_client/cli_lsarpc.o   \
                rpc_client/cli_wkssvc.o   \
                rpc_client/cli_srvsvc.o   \
-               rpc_client/cli_samr.o 
+               rpc_client/cli_samr.o  \
+               rpc_client/cli_reg.o
 
 
 LOCKING_OBJ = locking/locking.o locking/brlock.o locking/posix.o
index d00bb41b88d3f70729e3c505aee6621abd8669cb..93be5f5652ea06cc2f1315767b613c02c2e40138 100644 (file)
@@ -93,6 +93,7 @@ void cmd_netlogon_login_test(struct client_info *info)
 
        res = res ? cli_nt_setup_creds(smb_cli, trust_passwd) : False;
 
+#if 0 
        /* change the machine password? */
        if (global_machine_password_needs_changing)
        {
@@ -108,6 +109,7 @@ void cmd_netlogon_login_test(struct client_info *info)
 
                memset(new_trust_passwd, 0, 16);
        }
+#endif
 
        memset(trust_passwd, 0, 16);
 
index 4916cd9b402b5d3112228e5431e8c6b7e9e7186a..c6397654beb9b6244c058aaba39c9f0047eaa7e6 100644 (file)
@@ -92,6 +92,7 @@ void cmd_sam_ntchange_pwd(struct client_info *info)
        /* open SAMR session.  */
        res = res ? cli_nt_session_open(smb_cli, PIPE_SAMR) : False;
 
+#if 0
        /* establish a connection. */
        res = res ? do_samr_get_dom_pwinfo(smb_cli, srv_name) : False;
 
@@ -100,6 +101,7 @@ void cmd_sam_ntchange_pwd(struct client_info *info)
                                           srv_name, smb_cli->user_name,
                                           nt_newpass, nt_hshhash,
                                           lm_newpass, lm_hshhash) : False;
+#endif
        /* close the session */
        cli_nt_session_close(smb_cli);
 
@@ -154,8 +156,10 @@ void cmd_sam_test(struct client_info *info)
        /* open SAMR session.  */
        res = res ? cli_nt_session_open(smb_cli, PIPE_SAMR) : False;
 
+#if 0
        /* establish a connection. */
        res = res ? do_samr_get_dom_pwinfo(smb_cli, srv_name) : False;
+#endif
 
        /* close the session */
        cli_nt_session_close(smb_cli);
@@ -584,10 +588,12 @@ void cmd_sam_enum_aliases(struct client_info *info)
                    &info->dom.samr_pol_connect, admin_rid, &sid1,
                    &info->dom.samr_pol_open_domain) : False;
 
+#if 0
        /* send a query on the aliase */
        res = res ? do_samr_query_lookup_rids(smb_cli,
                    &info->dom.samr_pol_open_domain, admin_rid, num_aliases, alias_rid,
                    &num_aliases, alias_names, num_als_usrs) : False;
+#endif
 
        if (res)
        {
index ddbe435d7571cd84513ad1ca3bf8a21f76bd7df6..bb0cdac320e476bb8582c3231f5d6172912113b5 100644 (file)
@@ -1093,9 +1093,9 @@ void display_sec_acl(FILE *out_hnd, enum action_type action, SEC_ACL *sec_acl)
                                int i;
                                for (i = 0; i < sec_acl->num_aces; i++)
                                {
-                                       display_sec_ace(out_hnd, ACTION_HEADER   , &sec_acl->ace_list[i]);
-                                       display_sec_ace(out_hnd, ACTION_ENUMERATE, &sec_acl->ace_list[i]);
-                                       display_sec_ace(out_hnd, ACTION_FOOTER   , &sec_acl->ace_list[i]);
+                                       display_sec_ace(out_hnd, ACTION_HEADER   , &sec_acl->ace[i]);
+                                       display_sec_ace(out_hnd, ACTION_ENUMERATE, &sec_acl->ace[i]);
+                                       display_sec_ace(out_hnd, ACTION_FOOTER   , &sec_acl->ace[i]);
                                }
                        }
                                
index eccb2fd06ada436ff8a554b7c505061aa5839aea..0a91f255c10e51e5b5cb5ce6b8206dee504e14da 100644 (file)
@@ -404,9 +404,11 @@ enum client_action
 
        printf("Please use rpcclient from the SAMBA_TNG cvs tag.\n");
        printf("Please refer to http://samba.org/cvs.html for details.\n");
+/*
 #ifndef DEBUG_PASSWORD
        exit(-1);
 #endif
+*/
 
        out_hnd = stdout;
        fstrcpy(debugf, argv[0]);