関数 | |
| static NTSTATUS | cmd_testme (struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, int argc, const char **argv) |
変数 | |
| cmd_set | test_commands [] |
| static NTSTATUS cmd_testme | ( | struct rpc_pipe_client * | cli, | |
| TALLOC_CTX * | mem_ctx, | |||
| int | argc, | |||
| const char ** | argv | |||
| ) | [static] |
cmd_test.c の 25 行で定義されています。
参照先 cli・cli_rpc_pipe_close()・cli_rpc_pipe_open_noauth()・d_printf()・pol・rpccli_lsa_close()・rpccli_lsa_open_policy()・status.
00027 { 00028 struct rpc_pipe_client *lsa_pipe = NULL, *samr_pipe = NULL; 00029 NTSTATUS status = NT_STATUS_UNSUCCESSFUL; 00030 POLICY_HND pol; 00031 00032 d_printf("testme\n"); 00033 00034 lsa_pipe = cli_rpc_pipe_open_noauth(cli->cli, PI_LSARPC, &status); 00035 if (lsa_pipe == NULL) goto done; 00036 00037 samr_pipe = cli_rpc_pipe_open_noauth(cli->cli, PI_SAMR, &status); 00038 if (samr_pipe == NULL) goto done; 00039 00040 status = rpccli_lsa_open_policy(lsa_pipe, mem_ctx, False, 00041 SEC_RIGHTS_QUERY_VALUE, &pol); 00042 00043 if (!NT_STATUS_IS_OK(status)) 00044 goto done; 00045 00046 status = rpccli_lsa_close(lsa_pipe, mem_ctx, &pol); 00047 00048 if (!NT_STATUS_IS_OK(status)) 00049 goto done; 00050 00051 done: 00052 if (lsa_pipe != NULL) cli_rpc_pipe_close(lsa_pipe); 00053 if (samr_pipe != NULL) cli_rpc_pipe_close(samr_pipe); 00054 00055 return status; 00056 }
| struct cmd_set test_commands[] |
初期値:
{
{ "TESTING" },
{ "testme", RPC_RTYPE_NTSTATUS, cmd_testme, NULL,
-1, NULL, "Sample test", "testme" },
{ NULL }
}
cmd_test.c の 60 行で定義されています。
1.4.7