diff options
Diffstat (limited to 'source3/rpcclient/cmd_lsarpc.c')
-rw-r--r-- | source3/rpcclient/cmd_lsarpc.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/rpcclient/cmd_lsarpc.c b/source3/rpcclient/cmd_lsarpc.c index 1b7ebac45f..21097649cb 100644 --- a/source3/rpcclient/cmd_lsarpc.c +++ b/source3/rpcclient/cmd_lsarpc.c @@ -736,10 +736,10 @@ static NTSTATUS cmd_lsa_query_secobj(struct rpc_pipe_client *cli, POLICY_HND pol; NTSTATUS result = NT_STATUS_UNSUCCESSFUL; SEC_DESC_BUF *sdb; - uint32 sec_info = 0x00000004; /* ??? */ + uint32 sec_info = DACL_SECURITY_INFORMATION; - if (argc != 1 ) { - printf("Usage: %s\n", argv[0]); + if (argc < 1 || argc > 2) { + printf("Usage: %s [sec_info]\n", argv[0]); return NT_STATUS_OK; } @@ -747,6 +747,9 @@ static NTSTATUS cmd_lsa_query_secobj(struct rpc_pipe_client *cli, SEC_RIGHTS_MAXIMUM_ALLOWED, &pol); + if (argc == 2) + sscanf(argv[1], "%x", &sec_info); + if (!NT_STATUS_IS_OK(result)) goto done; |