diff options
author | Luke Leighton <lkcl@samba.org> | 1999-11-24 20:24:33 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-11-24 20:24:33 +0000 |
commit | f8b82a7b9507e11595bc924def179dc1d7d79a54 (patch) | |
tree | 1dab991fc42fecce86a98d45cb47fcb0dd087c38 /source3/rpc_client/msrpc_samr.c | |
parent | 2752e372b64337de24edef52575ddc7da0ed8d04 (diff) | |
download | samba-f8b82a7b9507e11595bc924def179dc1d7d79a54.tar.gz samba-f8b82a7b9507e11595bc924def179dc1d7d79a54.tar.bz2 samba-f8b82a7b9507e11595bc924def179dc1d7d79a54.zip |
first stages of removing struct cli_state* and uint16 fnum from all
msrpc client code. the intent is to hide / abstract / associate
connection info behind policy handles.
this makes the msrpc functions look more and more like their nt equivalents.
who-hou!
(This used to be commit c01b18e632aede6fce7264ef6971d7ddba945cfb)
Diffstat (limited to 'source3/rpc_client/msrpc_samr.c')
-rw-r--r-- | source3/rpc_client/msrpc_samr.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/source3/rpc_client/msrpc_samr.c b/source3/rpc_client/msrpc_samr.c index 02ffede615..d5a37832f3 100644 --- a/source3/rpc_client/msrpc_samr.c +++ b/source3/rpc_client/msrpc_samr.c @@ -462,7 +462,6 @@ BOOL sam_query_aliasmem(struct cli_state *cli, uint16 fnum, if (res3 && num_aliases != 0) { fstring srv_name; - uint16 fnum_lsa; POLICY_HND lsa_pol; uint32 i; @@ -477,23 +476,16 @@ BOOL sam_query_aliasmem(struct cli_state *cli, uint16 fnum, add_sid_to_array(&numsids, sids, &sid_mem[i].sid); } - /* open LSARPC session. */ - res3 = res3 ? cli_nt_session_open(cli, PIPE_LSARPC, &fnum_lsa) : False; - /* lookup domain controller; receive a policy handle */ - res3 = res3 ? lsa_open_policy(cli, fnum_lsa, - srv_name, + res3 = res3 ? lsa_open_policy( srv_name, &lsa_pol, True) : False; /* send lsa lookup sids call */ - res4 = res3 ? lsa_lookup_sids(cli, fnum_lsa, - &lsa_pol, + res4 = res3 ? lsa_lookup_sids( &lsa_pol, num_aliases, *sids, name, type, num_names) : False; - res3 = res3 ? lsa_close(cli, fnum_lsa, &lsa_pol) : False; - - cli_nt_session_close(cli, fnum_lsa); + res3 = res3 ? lsa_close(&lsa_pol) : False; } if (!res4) |