preparing for release of alpha.1.4
[Samba.git] / source / rpcclient / lsa_cmds.c
blob117832076c92af6f87f7c13259af12d50b580e63
1 /*
2 Unix SMB/Netbios implementation.
3 Version 1.9.
4 SMB client
5 Copyright (C) Andrew Tridgell 1994-2000
6 Copyright (C) Luke Kenneth Casson Leighton 1996-2000
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 #include "includes.h"
24 #include "ntdomain.h"
25 #include "rpcclient.h"
27 /****************************************************************************
28 This defines the commands supported by this client
29 ****************************************************************************/
30 static const struct command_set lsa_commands[] =
33 * lsa
37 "lsaquery",
38 cmd_lsa_query_info,
39 "Query Info Policy (domain member or server)",
40 {NULL, NULL}
43 "lsaenumdomains",
44 cmd_lsa_enum_trust_dom,
45 "Enumerate Trusted Domains",
46 {NULL, NULL}
49 "lookupsids",
50 cmd_lsa_lookup_sids,
51 "Resolve names from SIDs",
52 {NULL, NULL}
55 "lookupnames",
56 cmd_lsa_lookup_names,
57 "Resolve SIDs from names",
58 {NULL, NULL}
61 "createsecret",
62 cmd_lsa_create_secret,
63 "LSA Create Secret (developer use)",
64 {NULL, NULL}
67 "setsecret",
68 cmd_lsa_set_secret,
69 "LSA Set Secret (developer use)",
70 {NULL, NULL}
73 "querysecretsecobj",
74 cmd_lsa_query_secret_secobj,
75 "LSA Query Secret Security Descriptor (developer use)",
76 {NULL, NULL}
80 "querysecret",
81 cmd_lsa_query_secret,
82 "LSA Query Secret (developer use)",
83 {NULL, NULL}
87 * oop!
91 "",
92 NULL,
93 NULL,
94 {NULL, NULL}
98 void add_lsa_commands(void)
100 add_command_set(lsa_commands);