diff options
author | Günther Deschner <gd@samba.org> | 2008-02-01 11:38:29 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-02-01 12:29:58 +0100 |
commit | 2c7428e64ed69a2aaba80d3ef9d9cefde44fec0b (patch) | |
tree | 954847b0c44128fdac6533d048699e6809efedda /source3/rpcclient | |
parent | 331c1ad49b02a00541cc73cb6b6ccc6fc6a9c7d2 (diff) | |
download | samba-2c7428e64ed69a2aaba80d3ef9d9cefde44fec0b.tar.gz samba-2c7428e64ed69a2aaba80d3ef9d9cefde44fec0b.tar.bz2 samba-2c7428e64ed69a2aaba80d3ef9d9cefde44fec0b.zip |
Use rpccli_samr_OpenAlias() in net and rpcclient.
Guenther
(This used to be commit f66facc0f82e3d4c470d584d8ab0494fcb4ff5a2)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/cmd_samr.c | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c index c9c18bd6cc..68e8d26886 100644 --- a/source3/rpcclient/cmd_samr.c +++ b/source3/rpcclient/cmd_samr.c @@ -1128,9 +1128,11 @@ static NTSTATUS cmd_samr_query_aliasmem(struct rpc_pipe_client *cli, /* Open handle on alias */ - result = rpccli_samr_open_alias(cli, mem_ctx, &domain_pol, - access_mask, - alias_rid, &alias_pol); + result = rpccli_samr_OpenAlias(cli, mem_ctx, + &domain_pol, + access_mask, + alias_rid, + &alias_pol); if (!NT_STATUS_IS_OK(result)) goto done; @@ -1202,9 +1204,11 @@ static NTSTATUS cmd_samr_delete_alias(struct rpc_pipe_client *cli, /* Open handle on alias */ - result = rpccli_samr_open_alias(cli, mem_ctx, &domain_pol, - access_mask, - alias_rid, &alias_pol); + result = rpccli_samr_OpenAlias(cli, mem_ctx, + &domain_pol, + access_mask, + alias_rid, + &alias_pol); if (!NT_STATUS_IS_OK(result) && (alias_rid == 0)) { /* Probably this was a user name, try lookupnames */ uint32 num_rids; @@ -1216,10 +1220,11 @@ static NTSTATUS cmd_samr_delete_alias(struct rpc_pipe_client *cli, &types); if (NT_STATUS_IS_OK(result)) { - result = rpccli_samr_open_alias(cli, mem_ctx, + result = rpccli_samr_OpenAlias(cli, mem_ctx, &domain_pol, access_mask, - rids[0], &alias_pol); + rids[0], + &alias_pol); } } |