diff options
author | Luke Leighton <lkcl@samba.org> | 1998-12-07 21:32:02 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1998-12-07 21:32:02 +0000 |
commit | 54529fbd66a1adefbc0187ca4e594ff286f5f14f (patch) | |
tree | 60cadf2b5285f2f1b7a21d7af41a3c048f81e170 /source3/rpcclient | |
parent | ba0cdbe8f58b6ec591c4ed193afb678cdc9287f0 (diff) | |
download | samba-54529fbd66a1adefbc0187ca4e594ff286f5f14f.tar.gz samba-54529fbd66a1adefbc0187ca4e594ff286f5f14f.tar.bz2 samba-54529fbd66a1adefbc0187ca4e594ff286f5f14f.zip |
bugs in rpcclient. add_aliasmem uses a DOM_SID2 not a DOM_SID.
(This used to be commit 8a85d7abed317fd06e3e0026d4b9e088311eede4)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/cmd_samr.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c index 31f74906db..e815a2b4d3 100644 --- a/source3/rpcclient/cmd_samr.c +++ b/source3/rpcclient/cmd_samr.c @@ -382,8 +382,8 @@ void cmd_sam_add_aliasmem(struct client_info *info) uint32 alias_rid; const char **names = NULL; uint32 num_names = 0; - DOM_SID *sids; - uint32 num_sids; + DOM_SID *sids = NULL; + uint32 num_sids = 0; int i; sid_copy(&sid1, &info->dom.level5_sid); @@ -424,17 +424,17 @@ void cmd_sam_add_aliasmem(struct client_info *info) res3 = res3 ? cli_nt_session_open(smb_cli, PIPE_LSARPC, &fnum_lsa) : False; /* lookup domain controller; receive a policy handle */ - res3 = res3 ? lsa_open_policy(smb_cli, fnum, + res3 = res3 ? lsa_open_policy(smb_cli, fnum_lsa, srv_name, &info->dom.lsa_info_pol, True) : False; /* send lsa lookup sids call */ - res4 = res3 ? lsa_lookup_names(smb_cli, fnum, + res4 = res3 ? lsa_lookup_names(smb_cli, fnum_lsa, &info->dom.lsa_info_pol, num_names, names, &sids, &num_sids) : False; - res3 = res3 ? lsa_close(smb_cli, fnum, &info->dom.lsa_info_pol) : False; + res3 = res3 ? lsa_close(smb_cli, fnum_lsa, &info->dom.lsa_info_pol) : False; cli_nt_session_close(smb_cli, fnum_lsa); @@ -1557,17 +1557,17 @@ void cmd_sam_enum_aliases(struct client_info *info) res3 = res3 ? cli_nt_session_open(smb_cli, PIPE_LSARPC, &fnum_lsa) : False; /* lookup domain controller; receive a policy handle */ - res3 = res3 ? lsa_open_policy(smb_cli, fnum, + res3 = res3 ? lsa_open_policy(smb_cli, fnum_lsa, srv_name, &info->dom.lsa_info_pol, True) : False; /* send lsa lookup sids call */ - res4 = res3 ? lsa_lookup_sids(smb_cli, fnum, + res4 = res3 ? lsa_lookup_sids(smb_cli, fnum_lsa, &info->dom.lsa_info_pol, num_aliases, sids, &names, &num_names) : False; - res3 = res3 ? lsa_close(smb_cli, fnum, &info->dom.lsa_info_pol) : False; + res3 = res3 ? lsa_close(smb_cli, fnum_lsa, &info->dom.lsa_info_pol) : False; cli_nt_session_close(smb_cli, fnum_lsa); |