diff options
author | Andreas Schneider <asn@samba.org> | 2019-01-09 15:11:01 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-01-28 10:29:18 +0100 |
commit | 17d166e6bd850d1e0ad0a0a00e7f3f7825ef1701 (patch) | |
tree | 8a4bff545625b713be26be26a78f6d198f330ec9 | |
parent | d1695761a1ada3ab0765722dc1d040cc9a3b8b3f (diff) | |
download | samba-17d166e6bd850d1e0ad0a0a00e7f3f7825ef1701.tar.gz |
s3:rpcclient: Use C99 initializer for cmd_set in cmd_drsuapi
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
-rw-r--r-- | source3/rpcclient/cmd_drsuapi.c | 52 |
1 files changed, 46 insertions, 6 deletions
diff --git a/source3/rpcclient/cmd_drsuapi.c b/source3/rpcclient/cmd_drsuapi.c index 852e2e91479..59ce7d3f3bd 100644 --- a/source3/rpcclient/cmd_drsuapi.c +++ b/source3/rpcclient/cmd_drsuapi.c @@ -674,10 +674,50 @@ static WERROR cmd_drsuapi_getncchanges(struct rpc_pipe_client *cli, struct cmd_set drsuapi_commands[] = { - { "DRSUAPI" }, - { "dscracknames", RPC_RTYPE_WERROR, NULL, cmd_drsuapi_cracknames, &ndr_table_drsuapi, NULL, "Crack Name", "" }, - { "dsgetdcinfo", RPC_RTYPE_WERROR, NULL, cmd_drsuapi_getdcinfo, &ndr_table_drsuapi, NULL, "Get Domain Controller Info", "" }, - { "dsgetncchanges", RPC_RTYPE_WERROR, NULL, cmd_drsuapi_getncchanges, &ndr_table_drsuapi, NULL, "Get NC Changes", "" }, - { "dswriteaccountspn", RPC_RTYPE_WERROR, NULL, cmd_drsuapi_writeaccountspn, &ndr_table_drsuapi, NULL, "Write Account SPN", "" }, - { NULL } + { + .name = "DRSUAPI", + }, + { + .name = "dscracknames", + .returntype = RPC_RTYPE_WERROR, + .ntfn = NULL, + .wfn = cmd_drsuapi_cracknames, + .table = &ndr_table_drsuapi, + .rpc_pipe = NULL, + .description = "Crack Name", + .usage = "", + }, + { + .name = "dsgetdcinfo", + .returntype = RPC_RTYPE_WERROR, + .ntfn = NULL, + .wfn = cmd_drsuapi_getdcinfo, + .table = &ndr_table_drsuapi, + .rpc_pipe = NULL, + .description = "Get Domain Controller Info", + .usage = "", + }, + { + .name = "dsgetncchanges", + .returntype = RPC_RTYPE_WERROR, + .ntfn = NULL, + .wfn = cmd_drsuapi_getncchanges, + .table = &ndr_table_drsuapi, + .rpc_pipe = NULL, + .description = "Get NC Changes", + .usage = "", + }, + { + .name = "dswriteaccountspn", + .returntype = RPC_RTYPE_WERROR, + .ntfn = NULL, + .wfn = cmd_drsuapi_writeaccountspn, + .table = &ndr_table_drsuapi, + .rpc_pipe = NULL, + .description = "Write Account SPN", + .usage = "", + }, + { + .name = NULL, + }, }; |