git.samba.org
/
kai
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r13350: Implement rpccli_samr_set_domain_info. Weird that it was not around :-)
[kai/samba.git]
/
source3
/
utils
/
net_rpc_shell.c
diff --git
a/source3/utils/net_rpc_shell.c
b/source3/utils/net_rpc_shell.c
index 2e1f65fe6c4104237c3e6a9beaa1fe604c8ac568..0e17cd6843d689b0961115f3069d0b87529ea985 100644
(file)
--- a/
source3/utils/net_rpc_shell.c
+++ b/
source3/utils/net_rpc_shell.c
@@
-233,6
+233,9
@@
int net_rpc_shell(int argc, const char **argv)
}
ret = poptParseArgvString(line, &argc, &argv);
}
ret = poptParseArgvString(line, &argc, &argv);
+ if (ret == POPT_ERROR_NOARG) {
+ continue;
+ }
if (ret != 0) {
d_fprintf(stderr, "cmdline invalid: %s\n",
poptStrerror(ret));
if (ret != 0) {
d_fprintf(stderr, "cmdline invalid: %s\n",
poptStrerror(ret));
@@
-252,7
+255,7
@@
int net_rpc_shell(int argc, const char **argv)
return 0;
}
return 0;
}
-static struct rpc_sh_cmd sh_cmds[
5
] = {
+static struct rpc_sh_cmd sh_cmds[
6
] = {
{ "info", NULL, PI_SAMR, rpc_sh_info,
"Print information about the domain connected to" },
{ "info", NULL, PI_SAMR, rpc_sh_info,
"Print information about the domain connected to" },
@@
-266,5
+269,8
@@
static struct rpc_sh_cmd sh_cmds[5] = {
{ "user", net_rpc_user_cmds, 0, NULL,
"List/Add/Remove user info" },
{ "user", net_rpc_user_cmds, 0, NULL,
"List/Add/Remove user info" },
+ { "account", net_rpc_acct_cmds, 0, NULL,
+ "Show/Change account policy settings" },
+
{ NULL, NULL, 0, NULL, NULL }
};
{ NULL, NULL, 0, NULL, NULL }
};