diff options
author | Günther Deschner <gd@samba.org> | 2008-03-07 23:40:00 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-03-07 23:51:34 +0100 |
commit | 9beec265bcc81261bd220b78396cc42e6ee5eb5d (patch) | |
tree | 7809fc42a67cd4d7e56666ffd2f88bc57f6431b5 /source3/rpc_server/srv_srvsvc.c | |
parent | 5e6e3ccd00b715f912523d128cad05041366b3ce (diff) | |
download | samba-9beec265bcc81261bd220b78396cc42e6ee5eb5d.tar.gz samba-9beec265bcc81261bd220b78396cc42e6ee5eb5d.tar.bz2 samba-9beec265bcc81261bd220b78396cc42e6ee5eb5d.zip |
Use pidl for _srvsvc_NetNameValidate.
Guenther
(This used to be commit 2e1df306785296979ea064006402254e318e946b)
Diffstat (limited to 'source3/rpc_server/srv_srvsvc.c')
-rw-r--r-- | source3/rpc_server/srv_srvsvc.c | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/source3/rpc_server/srv_srvsvc.c b/source3/rpc_server/srv_srvsvc.c index 875cda50f9..8853295608 100644 --- a/source3/rpc_server/srv_srvsvc.c +++ b/source3/rpc_server/srv_srvsvc.c @@ -301,30 +301,9 @@ static bool api_srv_net_disk_enum(pipes_struct *p) NetValidateName (opnum 0x21) *******************************************************************/ -static bool api_srv_net_name_validate(pipes_struct *p) +static bool api_srv_net_name_validate(pipes_struct *p) { - SRV_Q_NET_NAME_VALIDATE q_u; - SRV_R_NET_NAME_VALIDATE r_u; - prs_struct *data = &p->in_data.data; - prs_struct *rdata = &p->out_data.rdata; - - ZERO_STRUCT(q_u); - ZERO_STRUCT(r_u); - - /* Unmarshall the net server disk enum. */ - if(!srv_io_q_net_name_validate("", &q_u, data, 0)) { - DEBUG(0,("api_srv_net_name_validate: Failed to unmarshall SRV_Q_NET_NAME_VALIDATE.\n")); - return False; - } - - r_u.status = _srv_net_name_validate(p, &q_u, &r_u); - - if(!srv_io_r_net_name_validate("", &r_u, rdata, 0)) { - DEBUG(0,("api_srv_net_name_validate: Failed to marshall SRV_R_NET_NAME_VALIDATE.\n")); - return False; - } - - return True; + return proxy_srvsvc_call(p, NDR_SRVSVC_NETNAMEVALIDATE); } /******************************************************************* |