diff options
author | Günther Deschner <gd@samba.org> | 2008-02-12 12:58:47 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-02-12 14:52:25 +0100 |
commit | 4974200f308229f8d7d1637ef9a33bcd921e138f (patch) | |
tree | 4b6f3ec906eb3a980fa912127e6559920cae1540 /source3/rpc_server/srv_samr.c | |
parent | e4501b0913088e0d6414d3440643f823dda9f0a2 (diff) | |
download | samba-4974200f308229f8d7d1637ef9a33bcd921e138f.tar.gz samba-4974200f308229f8d7d1637ef9a33bcd921e138f.tar.bz2 samba-4974200f308229f8d7d1637ef9a33bcd921e138f.zip |
Use pidl for _samr_QueryUserInfo.
Guenther
(This used to be commit 53dc913b2d01aeea2a7490c5ef1292e6c6eff5e7)
Diffstat (limited to 'source3/rpc_server/srv_samr.c')
-rw-r--r-- | source3/rpc_server/srv_samr.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/source3/rpc_server/srv_samr.c b/source3/rpc_server/srv_samr.c index d25ca3a178..f7cc7eec10 100644 --- a/source3/rpc_server/srv_samr.c +++ b/source3/rpc_server/srv_samr.c @@ -188,28 +188,7 @@ static bool api_samr_open_user(pipes_struct *p) static bool api_samr_query_userinfo(pipes_struct *p) { - SAMR_Q_QUERY_USERINFO q_u; - SAMR_R_QUERY_USERINFO 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_query_userinfo("", &q_u, data, 0)){ - DEBUG(0,("api_samr_query_userinfo: unable to unmarshall SAMR_Q_QUERY_USERINFO.\n")); - return False; - } - - r_u.status = _samr_query_userinfo(p, &q_u, &r_u); - - /* store the response in the SMB stream */ - if(!samr_io_r_query_userinfo("", &r_u, rdata, 0)) { - DEBUG(0,("api_samr_query_userinfo: unable to marshall SAMR_R_QUERY_USERINFO.\n")); - return False; - } - - return True; + return proxy_samr_call(p, NDR_SAMR_QUERYUSERINFO); } /******************************************************************* |