summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-11-27 20:34:32 +0000
committerLuke Leighton <lkcl@samba.org>1999-11-27 20:34:32 +0000
commitd4bf1ca515eb9015970cc339b6b9a2177691350d (patch)
tree1128306f598dd569077c5d0a60672b9158ad274e /source3
parent015dc121ea507dfd6c1011985ad6ac3ba422fa14 (diff)
downloadsamba-d4bf1ca515eb9015970cc339b6b9a2177691350d.tar.gz
samba-d4bf1ca515eb9015970cc339b6b9a2177691350d.tar.bz2
samba-d4bf1ca515eb9015970cc339b6b9a2177691350d.zip
remove use of client_info lsa_info_pol.
(This used to be commit 2dad9d912dbc6c4a14af63715821a51c279584c6)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpcclient/cmd_lsarpc.c30
1 files changed, 17 insertions, 13 deletions
diff --git a/source3/rpcclient/cmd_lsarpc.c b/source3/rpcclient/cmd_lsarpc.c
index 26f08b099f..effcecd0ed 100644
--- a/source3/rpcclient/cmd_lsarpc.c
+++ b/source3/rpcclient/cmd_lsarpc.c
@@ -44,6 +44,7 @@ void cmd_lsa_enum_trust_dom(struct client_info *info, int argc, char *argv[])
char **domains = NULL;
DOM_SID **sids = NULL;
uint32 enum_ctx = 0;
+ POLICY_HND lsa_pol;
BOOL res = True;
@@ -55,18 +56,18 @@ void cmd_lsa_enum_trust_dom(struct client_info *info, int argc, char *argv[])
/* lookup domain controller; receive a policy handle */
res = res ? lsa_open_policy( srv_name,
- &info->dom.lsa_info_pol, False) : False;
+ &lsa_pol, False) : False;
do
{
/* send enum trusted domains query */
- res = res ? lsa_enum_trust_dom( &info->dom.lsa_info_pol,
+ res = res ? lsa_enum_trust_dom( &lsa_pol,
&enum_ctx,
&num_doms, &domains, &sids) : False;
} while (res && enum_ctx != 0);
- res = res ? lsa_close(&info->dom.lsa_info_pol) : False;
+ res = res ? lsa_close(&lsa_pol) : False;
if (res)
{
@@ -97,6 +98,7 @@ nt lsa query
void cmd_lsa_query_info(struct client_info *info, int argc, char *argv[])
{
fstring srv_name;
+ POLICY_HND lsa_pol;
BOOL res = True;
@@ -113,19 +115,19 @@ void cmd_lsa_query_info(struct client_info *info, int argc, char *argv[])
/* lookup domain controller; receive a policy handle */
res = res ? lsa_open_policy( srv_name,
- &info->dom.lsa_info_pol, False) : False;
+ &lsa_pol, False) : False;
/* send client info query, level 3. receive domain name and sid */
- res = res ? lsa_query_info_pol( &info->dom.lsa_info_pol, 0x03,
+ res = res ? lsa_query_info_pol( &lsa_pol, 0x03,
info->dom.level3_dom,
&info->dom.level3_sid) : False;
/* send client info query, level 5. receive domain name and sid */
- res = res ? lsa_query_info_pol( &info->dom.lsa_info_pol, 0x05,
+ res = res ? lsa_query_info_pol( &lsa_pol, 0x05,
info->dom.level5_dom,
&info->dom.level5_sid) : False;
- res = res ? lsa_close(&info->dom.lsa_info_pol) : False;
+ res = res ? lsa_close(&lsa_pol) : False;
if (res)
{
@@ -166,6 +168,7 @@ lookup names
****************************************************************************/
void cmd_lsa_lookup_names(struct client_info *info, int argc, char *argv[])
{
+ POLICY_HND lsa_pol;
fstring temp;
int i;
fstring srv_name;
@@ -199,14 +202,14 @@ void cmd_lsa_lookup_names(struct client_info *info, int argc, char *argv[])
/* lookup domain controller; receive a policy handle */
res = res ? lsa_open_policy( srv_name,
- &info->dom.lsa_info_pol, True) : False;
+ &lsa_pol, True) : False;
/* send lsa lookup sids call */
- res = res ? lsa_lookup_names( &info->dom.lsa_info_pol,
+ res = res ? lsa_lookup_names( &lsa_pol,
num_names, names,
&sids, NULL, &num_sids) : False;
- res = res ? lsa_close(&info->dom.lsa_info_pol) : False;
+ res = res ? lsa_close(&lsa_pol) : False;
if (res)
{
@@ -240,6 +243,7 @@ lookup sids
****************************************************************************/
void cmd_lsa_lookup_sids(struct client_info *info, int argc, char *argv[])
{
+ POLICY_HND lsa_pol;
int i;
pstring sid_name;
fstring srv_name;
@@ -295,14 +299,14 @@ void cmd_lsa_lookup_sids(struct client_info *info, int argc, char *argv[])
/* lookup domain controller; receive a policy handle */
res = res ? lsa_open_policy( srv_name,
- &info->dom.lsa_info_pol, True) : False;
+ &lsa_pol, True) : False;
/* send lsa lookup sids call */
- res = res ? lsa_lookup_sids( &info->dom.lsa_info_pol,
+ res = res ? lsa_lookup_sids( &lsa_pol,
num_sids, sids,
&names, NULL, &num_names) : False;
- res = res ? lsa_close(&info->dom.lsa_info_pol) : False;
+ res = res ? lsa_close(&lsa_pol) : False;
if (res)
{