diff options
author | Günther Deschner <gd@samba.org> | 2006-03-10 13:01:08 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:15:13 -0500 |
commit | e443866f76e060d908e5c48588468c14f37d4abc (patch) | |
tree | d133f3c6ecd096c606c9aa17dc77f475140691de /source3 | |
parent | 7a2bc34d4d42c0164f476fa9bb0d06ad07db7da5 (diff) | |
download | samba-e443866f76e060d908e5c48588468c14f37d4abc.tar.gz samba-e443866f76e060d908e5c48588468c14f37d4abc.tar.bz2 samba-e443866f76e060d908e5c48588468c14f37d4abc.zip |
r14144: allow to set sec_info in rpcclients lsa_query_secobj.
Guenther
(This used to be commit 18ee669c604b344910308fef81c2544e208ef62c)
Diffstat (limited to 'source3')
-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; |