summaryrefslogtreecommitdiff
path: root/source3/rpc_parse/parse_samr.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-10-16 23:40:59 +0000
committerLuke Leighton <lkcl@samba.org>1998-10-16 23:40:59 +0000
commita785f8d2c90f3db579c781ca5f722cb5b695fcb4 (patch)
treec4927b78c9cc0db63d8c1625bb99e125cc98380d /source3/rpc_parse/parse_samr.c
parentbad4e66489075fd5365e1bfdd8d1b8b633ae0004 (diff)
downloadsamba-a785f8d2c90f3db579c781ca5f722cb5b695fcb4.tar.gz
samba-a785f8d2c90f3db579c781ca5f722cb5b695fcb4.tar.bz2
samba-a785f8d2c90f3db579c781ca5f722cb5b695fcb4.zip
dce/rpc
(This used to be commit 29434f496c18e816d864060d68f357aea6ef5de8)
Diffstat (limited to 'source3/rpc_parse/parse_samr.c')
-rw-r--r--source3/rpc_parse/parse_samr.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/source3/rpc_parse/parse_samr.c b/source3/rpc_parse/parse_samr.c
index eb882a7564..a443191a7a 100644
--- a/source3/rpc_parse/parse_samr.c
+++ b/source3/rpc_parse/parse_samr.c
@@ -2357,6 +2357,7 @@ void make_samr_q_connect(SAMR_Q_CONNECT *q_u,
DEBUG(5,("make_q_connect\n"));
/* make PDC server name \\server */
+ q_u->ptr_srv_name = len_srv_name > 0 ? 1 : 0;
make_unistr2(&(q_u->uni_srv_name), srv_name, len_srv_name);
/* example values: 0x0000 0002 */
@@ -2751,6 +2752,18 @@ void samr_io_q_chgpasswd_user(char *desc, SAMR_Q_CHGPASSWD_USER *q_u, prs_struct
}
/*******************************************************************
+makes a SAMR_R_CHGPASSWD_USER structure.
+********************************************************************/
+void make_samr_r_chgpasswd_user(SAMR_R_CHGPASSWD_USER *r_u, uint32 status)
+{
+ if (r_u == NULL) return;
+
+ DEBUG(5,("make_r_chgpasswd_user\n"));
+
+ r_u->status = status;
+}
+
+/*******************************************************************
reads or writes a structure.
********************************************************************/
void samr_io_r_chgpasswd_user(char *desc, SAMR_R_CHGPASSWD_USER *r_u, prs_struct *ps, int depth)