diff options
author | Jim McDonough <jmcd@samba.org> | 2002-08-12 08:25:02 +0000 |
---|---|---|
committer | Jim McDonough <jmcd@samba.org> | 2002-08-12 08:25:02 +0000 |
commit | 4a822be1d3bb547b87ff3a0f24dca862fa1fa809 (patch) | |
tree | cd9ef9ad34b8c12ac7a89cc347e5a6d3abd24d47 /source3/rpc_parse | |
parent | 3773419cdf8553f68bdb43149c2d93cad6d78f50 (diff) | |
download | samba-4a822be1d3bb547b87ff3a0f24dca862fa1fa809.tar.gz samba-4a822be1d3bb547b87ff3a0f24dca862fa1fa809.tar.bz2 samba-4a822be1d3bb547b87ff3a0f24dca862fa1fa809.zip |
Add client side support for samr connect4 (0x3e). Seems to have one
additional parm compared to samr connect, but I've only seen 0x00000002
in that field...
(This used to be commit ed2370b91f7f6a36efdf6b65340a5b29a26e7e7a)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r-- | source3/rpc_parse/parse_samr.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/source3/rpc_parse/parse_samr.c b/source3/rpc_parse/parse_samr.c index 5131f3b4f2..a6e1351aa1 100644 --- a/source3/rpc_parse/parse_samr.c +++ b/source3/rpc_parse/parse_samr.c @@ -6719,6 +6719,28 @@ BOOL samr_io_r_connect(char *desc, SAMR_R_CONNECT * r_u, } /******************************************************************* +inits a SAMR_Q_CONNECT4 structure. +********************************************************************/ + +void init_samr_q_connect4(SAMR_Q_CONNECT4 * q_u, + char *srv_name, uint32 access_mask) +{ + int len_srv_name = strlen(srv_name); + + DEBUG(5, ("init_samr_q_connect\n")); + + /* make PDC server name \\server */ + q_u->ptr_srv_name = len_srv_name > 0 ? 1 : 0; + init_unistr2(&q_u->uni_srv_name, srv_name, len_srv_name + 1); + + /* Only value we've seen, possibly an address type ? */ + q_u->unk_0 = 2; + + /* example values: 0x0000 0002 */ + q_u->access_mask = access_mask; +} + +/******************************************************************* reads or writes a structure. ********************************************************************/ |