summaryrefslogtreecommitdiff
path: root/source3/utils/net_rpc_sh_acct.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-11-08 12:24:06 +0100
committerVolker Lendecke <vl@samba.org>2009-11-08 13:12:15 +0100
commit53f2a1595e76db9fe1b42db65b51895b73365993 (patch)
tree704c28e54e7a3cb069de5d88c5e80f56194f4b8a /source3/utils/net_rpc_sh_acct.c
parent494b2aff8826947e3bd556aecb175746163da485 (diff)
downloadsamba-53f2a1595e76db9fe1b42db65b51895b73365993.tar.gz
samba-53f2a1595e76db9fe1b42db65b51895b73365993.tar.bz2
samba-53f2a1595e76db9fe1b42db65b51895b73365993.zip
s3: Make run_rpc_command take strings instead of a ndr_interface_table
Diffstat (limited to 'source3/utils/net_rpc_sh_acct.c')
-rw-r--r--source3/utils/net_rpc_sh_acct.c25
1 files changed, 16 insertions, 9 deletions
diff --git a/source3/utils/net_rpc_sh_acct.c b/source3/utils/net_rpc_sh_acct.c
index 83ce3551d1..9b788a4715 100644
--- a/source3/utils/net_rpc_sh_acct.c
+++ b/source3/utils/net_rpc_sh_acct.c
@@ -430,24 +430,31 @@ struct rpc_sh_cmd *net_rpc_acct_cmds(struct net_context *c, TALLOC_CTX *mem_ctx,
struct rpc_sh_ctx *ctx)
{
static struct rpc_sh_cmd cmds[9] = {
- { "show", NULL, &ndr_table_samr.syntax_id, rpc_sh_acct_pol_show,
+ { "show", NULL, NDR_SAMR_UUID, NDR_SAMR_VERSION,
+ rpc_sh_acct_pol_show,
N_("Show current account policy settings") },
- { "badpw", NULL, &ndr_table_samr.syntax_id, rpc_sh_acct_set_badpw,
+ { "badpw", NULL, NDR_SAMR_UUID, NDR_SAMR_VERSION,
+ rpc_sh_acct_set_badpw,
N_("Set bad password count before lockout") },
- { "lockduration", NULL, &ndr_table_samr.syntax_id, rpc_sh_acct_set_lockduration,
+ { "lockduration", NULL, NDR_SAMR_UUID, NDR_SAMR_VERSION,
+ rpc_sh_acct_set_lockduration,
N_("Set account lockout duration") },
- { "resetduration", NULL, &ndr_table_samr.syntax_id,
+ { "resetduration", NULL, NDR_SAMR_UUID, NDR_SAMR_VERSION,
rpc_sh_acct_set_resetduration,
N_("Set bad password count reset duration") },
- { "minpwage", NULL, &ndr_table_samr.syntax_id, rpc_sh_acct_set_minpwage,
+ { "minpwage", NULL, NDR_SAMR_UUID, NDR_SAMR_VERSION,
+ rpc_sh_acct_set_minpwage,
N_("Set minimum password age") },
- { "maxpwage", NULL, &ndr_table_samr.syntax_id, rpc_sh_acct_set_maxpwage,
+ { "maxpwage", NULL, NDR_SAMR_UUID, NDR_SAMR_VERSION,
+ rpc_sh_acct_set_maxpwage,
N_("Set maximum password age") },
- { "minpwlen", NULL, &ndr_table_samr.syntax_id, rpc_sh_acct_set_minpwlen,
+ { "minpwlen", NULL, NDR_SAMR_UUID, NDR_SAMR_VERSION,
+ rpc_sh_acct_set_minpwlen,
N_("Set minimum password length") },
- { "pwhistlen", NULL, &ndr_table_samr.syntax_id, rpc_sh_acct_set_pwhistlen,
+ { "pwhistlen", NULL, NDR_SAMR_UUID, NDR_SAMR_VERSION,
+ rpc_sh_acct_set_pwhistlen,
N_("Set the password history length") },
- { NULL, NULL, 0, NULL, NULL }
+ { NULL, NULL, NULL, 0, NULL, NULL }
};
return cmds;