diff options
author | Tim Potter <tpot@samba.org> | 2002-06-03 02:24:22 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-06-03 02:24:22 +0000 |
commit | b3b3e45583718e5b034f6c67609523f35753c1a8 (patch) | |
tree | 43f6fab024680727019a89ae43673bb95106be13 | |
parent | d6dd7c7b14a4e3be4d7d435b6ac6bb8189070ff7 (diff) | |
download | samba-b3b3e45583718e5b034f6c67609523f35753c1a8.tar.gz samba-b3b3e45583718e5b034f6c67609523f35753c1a8.tar.xz samba-b3b3e45583718e5b034f6c67609523f35753c1a8.zip |
Added getdompwinfo function.
-rw-r--r-- | source/rpcclient/cmd_samr.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/source/rpcclient/cmd_samr.c b/source/rpcclient/cmd_samr.c index d5f9c442533..3e7395d8cef 100644 --- a/source/rpcclient/cmd_samr.c +++ b/source/rpcclient/cmd_samr.c @@ -1291,6 +1291,31 @@ done: return result; } +static NTSTATUS cmd_samr_get_dom_pwinfo(struct cli_state *cli, + TALLOC_CTX *mem_ctx, + int argc, char **argv) +{ + NTSTATUS result = NT_STATUS_UNSUCCESSFUL; + uint16 unk_0, unk_1, unk_2; + + if (argc != 1) { + printf("Usage: %s\n", argv[0]); + return NT_STATUS_OK; + } + + result = cli_samr_get_dom_pwinfo(cli, mem_ctx, &unk_0, &unk_1, &unk_2); + + if (NT_STATUS_IS_OK(result)) { + printf("unk_0 = 0x%08x\n", unk_0); + printf("unk_1 = 0x%08x\n", unk_1); + printf("unk_2 = 0x%08x\n", unk_2); + } + + done: + return result; +} + + /* List of commands exported by this module */ struct cmd_set samr_commands[] = { @@ -1313,6 +1338,7 @@ struct cmd_set samr_commands[] = { { "samlookuprids", cmd_samr_lookup_rids, PIPE_SAMR, "Look up names", "" }, { "deletedomuser", cmd_samr_delete_dom_user, PIPE_SAMR, "Delete domain user", "" }, { "samquerysecobj", cmd_samr_query_sec_obj, PIPE_SAMR, "Query SAMR security object", "" }, + { "getdompwinfo", cmd_samr_get_dom_pwinfo, PIPE_SAMR, "Retrieve domain password info", "" }, { NULL } }; |