summaryrefslogtreecommitdiff
path: root/source3/rpcclient/rpcclient.c
diff options
context:
space:
mode:
authorJean-François Micouleau <jfm@samba.org>2001-10-22 06:13:38 +0000
committerJean-François Micouleau <jfm@samba.org>2001-10-22 06:13:38 +0000
commit0968ee87e14f33a87f7ad361dc5d915c24215ce7 (patch)
treeaad7b041381a06f985f7e5549215e85ecd1e8807 /source3/rpcclient/rpcclient.c
parentfba157123ed1d6f59d40aa9161218fbfcf71253f (diff)
downloadsamba-0968ee87e14f33a87f7ad361dc5d915c24215ce7.tar.gz
samba-0968ee87e14f33a87f7ad361dc5d915c24215ce7.tar.bz2
samba-0968ee87e14f33a87f7ad361dc5d915c24215ce7.zip
allow the samr commands to work back and the help too ;-)
J.F. (This used to be commit 0157fdc8a291ba9872757fb6cf5e16e98058a034)
Diffstat (limited to 'source3/rpcclient/rpcclient.c')
-rw-r--r--source3/rpcclient/rpcclient.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c
index 77bf413723..be1be0fd51 100644
--- a/source3/rpcclient/rpcclient.c
+++ b/source3/rpcclient/rpcclient.c
@@ -187,9 +187,9 @@ static void get_username (char *username)
return;
}
-/* Fetch the SID for this domain */
+/* Fetch the SID for this computer */
-void fetch_domain_sid(struct cli_state *cli)
+void fetch_machine_sid(struct cli_state *cli)
{
POLICY_HND pol;
NTSTATUS result = NT_STATUS_OK;
@@ -356,17 +356,17 @@ static struct cmd_set rpcclient_commands[] = {
{ "GENERAL OPTIONS" },
- { "help", cmd_help, "Get help on commands", "[command]" },
- { "?", cmd_help, "Get help on commands", "[command]" },
- { "debuglevel", cmd_debuglevel, "Set debug level", "level" },
- { "exit", cmd_quit, "Exit program", "" },
- { "quit", cmd_quit, "Exit program", "" },
+ { "help", cmd_help, NULL, "Get help on commands", "[command]" },
+ { "?", cmd_help, NULL, "Get help on commands", "[command]" },
+ { "debuglevel", cmd_debuglevel, NULL, "Set debug level", "level" },
+ { "exit", cmd_quit, NULL, "Exit program", "" },
+ { "quit", cmd_quit, NULL, "Exit program", "" },
{ NULL }
};
static struct cmd_set separator_command[] = {
- { "---------------", NULL, "----------------------" },
+ { "---------------", NULL, NULL, "----------------------" },
{ NULL }
};
@@ -756,7 +756,9 @@ static void usage(void)
cmd_set++;
}
- /* Do anything specified with -c */
+ fetch_machine_sid(&cli);
+
+ /* Do anything specified with -c */
if (cmdstr[0]) {
char *cmd;
char *p = cmdstr;