From b02c46bef944712834045399c883ea14f45bde94 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 8 Nov 2009 19:37:26 +0100 Subject: Revert "s3: Make run_rpc_command take strings instead of a ndr_interface_table" This reverts commit 53f2a1595e76db9fe1b42db65b51895b73365993. --- source3/utils/net_rpc_sh_acct.c | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) (limited to 'source3/utils/net_rpc_sh_acct.c') diff --git a/source3/utils/net_rpc_sh_acct.c b/source3/utils/net_rpc_sh_acct.c index 9b788a4715..83ce3551d1 100644 --- a/source3/utils/net_rpc_sh_acct.c +++ b/source3/utils/net_rpc_sh_acct.c @@ -430,31 +430,24 @@ 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_SAMR_UUID, NDR_SAMR_VERSION, - rpc_sh_acct_pol_show, + { "show", NULL, &ndr_table_samr.syntax_id, rpc_sh_acct_pol_show, N_("Show current account policy settings") }, - { "badpw", NULL, NDR_SAMR_UUID, NDR_SAMR_VERSION, - rpc_sh_acct_set_badpw, + { "badpw", NULL, &ndr_table_samr.syntax_id, rpc_sh_acct_set_badpw, N_("Set bad password count before lockout") }, - { "lockduration", NULL, NDR_SAMR_UUID, NDR_SAMR_VERSION, - rpc_sh_acct_set_lockduration, + { "lockduration", NULL, &ndr_table_samr.syntax_id, rpc_sh_acct_set_lockduration, N_("Set account lockout duration") }, - { "resetduration", NULL, NDR_SAMR_UUID, NDR_SAMR_VERSION, + { "resetduration", NULL, &ndr_table_samr.syntax_id, rpc_sh_acct_set_resetduration, N_("Set bad password count reset duration") }, - { "minpwage", NULL, NDR_SAMR_UUID, NDR_SAMR_VERSION, - rpc_sh_acct_set_minpwage, + { "minpwage", NULL, &ndr_table_samr.syntax_id, rpc_sh_acct_set_minpwage, N_("Set minimum password age") }, - { "maxpwage", NULL, NDR_SAMR_UUID, NDR_SAMR_VERSION, - rpc_sh_acct_set_maxpwage, + { "maxpwage", NULL, &ndr_table_samr.syntax_id, rpc_sh_acct_set_maxpwage, N_("Set maximum password age") }, - { "minpwlen", NULL, NDR_SAMR_UUID, NDR_SAMR_VERSION, - rpc_sh_acct_set_minpwlen, + { "minpwlen", NULL, &ndr_table_samr.syntax_id, rpc_sh_acct_set_minpwlen, N_("Set minimum password length") }, - { "pwhistlen", NULL, NDR_SAMR_UUID, NDR_SAMR_VERSION, - rpc_sh_acct_set_pwhistlen, + { "pwhistlen", NULL, &ndr_table_samr.syntax_id, rpc_sh_acct_set_pwhistlen, N_("Set the password history length") }, - { NULL, NULL, NULL, 0, NULL, NULL } + { NULL, NULL, 0, NULL, NULL } }; return cmds; -- cgit