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 | 15e5ef6ce817fc6b029d8cc11902afa542421999 (patch) | |
tree | 04ae220150c4aaf5ed9347a7e4a21d840a4e33f4 /source3/rpcclient | |
parent | b433a90f021c86f39fbd1efb3d0de3ddbeb25afc (diff) | |
download | samba-15e5ef6ce817fc6b029d8cc11902afa542421999.tar.gz samba-15e5ef6ce817fc6b029d8cc11902afa542421999.tar.bz2 samba-15e5ef6ce817fc6b029d8cc11902afa542421999.zip |
Added getdompwinfo function.
(This used to be commit b3b3e45583718e5b034f6c67609523f35753c1a8)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/cmd_samr.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c index d5f9c44253..3e7395d8ce 100644 --- a/source3/rpcclient/cmd_samr.c +++ b/source3/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 } }; |