summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_samr.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-02-01 01:32:18 +0100
committerGünther Deschner <gd@samba.org>2008-02-01 10:04:35 +0100
commit1921a6d67e704ac009695885e6954596e278a681 (patch)
treee44be5dfd600d6655e7284067f6f179c284c1a6a /source3/rpc_server/srv_samr.c
parentb36ad1d59b07456b300775f51914af3183aac428 (diff)
downloadsamba-1921a6d67e704ac009695885e6954596e278a681.tar.gz
samba-1921a6d67e704ac009695885e6954596e278a681.tar.bz2
samba-1921a6d67e704ac009695885e6954596e278a681.zip
Use pidl for _samr_DeleteDomAlias().
Guenther (This used to be commit 31d5a3aaa42c18319fd751aba65f435348b1e83e)
Diffstat (limited to 'source3/rpc_server/srv_samr.c')
-rw-r--r--source3/rpc_server/srv_samr.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/source3/rpc_server/srv_samr.c b/source3/rpc_server/srv_samr.c
index 5d69886445..4d5f841aa2 100644
--- a/source3/rpc_server/srv_samr.c
+++ b/source3/rpc_server/srv_samr.c
@@ -1063,28 +1063,7 @@ static bool api_samr_delete_dom_group(pipes_struct *p)
static bool api_samr_delete_dom_alias(pipes_struct *p)
{
- SAMR_Q_DELETE_DOM_ALIAS q_u;
- SAMR_R_DELETE_DOM_ALIAS r_u;
-
- prs_struct *data = &p->in_data.data;
- prs_struct *rdata = &p->out_data.rdata;
-
- ZERO_STRUCT(q_u);
- ZERO_STRUCT(r_u);
-
- if (!samr_io_q_delete_dom_alias("", &q_u, data, 0)) {
- DEBUG(0,("api_samr_delete_dom_alias: unable to unmarshall SAMR_Q_DELETE_DOM_ALIAS.\n"));
- return False;
- }
-
- r_u.status = _samr_delete_dom_alias(p, &q_u, &r_u);
-
- if (!samr_io_r_delete_dom_alias("", &r_u, rdata, 0)) {
- DEBUG(0,("api_samr_delete_dom_alias: unable to marshall SAMR_R_DELETE_DOM_ALIAS.\n"));
- return False;
- }
-
- return True;
+ return proxy_samr_call(p, NDR_SAMR_DELETEDOMALIAS);
}
/*******************************************************************