diff options
author | Günther Deschner <gd@samba.org> | 2008-02-06 13:16:04 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-02-07 10:56:24 +0100 |
commit | 32ca0e8147454fbcc3938a677322974ce8c0cf20 (patch) | |
tree | 8c245654d855c792deb9ca7ddad33ab8d3702198 /source3/utils | |
parent | c56cb9d0dc84264e0d887d01afb0c28320d70454 (diff) | |
download | samba-32ca0e8147454fbcc3938a677322974ce8c0cf20.tar.gz samba-32ca0e8147454fbcc3938a677322974ce8c0cf20.tar.bz2 samba-32ca0e8147454fbcc3938a677322974ce8c0cf20.zip |
Use rpccli_samr_SetAliasInfo() in net.
Guenther
(This used to be commit 18c52030bb44dd0e05037477cd7e1329a8390560)
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_rpc.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c index a1e093a335..68a8411b7c 100644 --- a/source3/utils/net_rpc.c +++ b/source3/utils/net_rpc.c @@ -2051,7 +2051,7 @@ static NTSTATUS rpc_alias_add_internals(const DOM_SID *domain_sid, { POLICY_HND connect_pol, domain_pol, alias_pol; NTSTATUS result = NT_STATUS_UNSUCCESSFUL; - ALIAS_INFO_CTR alias_info; + union samr_AliasInfo alias_info; struct lsa_String alias_name; uint32_t rid = 0; @@ -2094,10 +2094,13 @@ static NTSTATUS rpc_alias_add_internals(const DOM_SID *domain_sid, /* We've got a comment to set */ - alias_info.level = 3; - init_samr_alias_info3(&alias_info.alias.info3, opt_comment); + init_lsa_String(&alias_info.description, opt_comment); + + result = rpccli_samr_SetAliasInfo(pipe_hnd, mem_ctx, + &alias_pol, + 3, + &alias_info); - result = rpccli_samr_set_aliasinfo(pipe_hnd, mem_ctx, &alias_pol, &alias_info); if (!NT_STATUS_IS_OK(result)) goto done; done: |