From 373ea639e03e72bef8242133abbf678cf90ed0d9 Mon Sep 17 00:00:00 2001 From: Matthew Chapman Date: Thu, 8 Apr 1999 05:36:15 +0000 Subject: Mainly BDC-related changes. * Added SEC_CHAN_BDC * Propagate sec_chan into the various functions which change trust account passwords, so they can be used for domain control and inter-domain trusts. * Fix for endianness problem reported by Edan Idzerda . A BUFFER2 is really a "unibuf" in my terminology and we should treat it as such. * Added some more common NT structures (BIGINT, BUFHDR2, BUFFER4). * Added NET_SAM_SYNC (-> NetDatabaseSync2) RPC for account replication. Still experimental and incomplete, with a few too many NULL security descriptors lying around (must go look at Jeremy's SD code). Haven't worked out password encryption yet either. However, the XXX_INFO structures I've added to rpc_netlogon.h are quite nice as they give some insight into how these objects are stored in the SAM. (This used to be commit 7b830350eb54dc9d357c115e12ddf9a0633527ac) --- source3/rpc_parse/parse_reg.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'source3/rpc_parse/parse_reg.c') diff --git a/source3/rpc_parse/parse_reg.c b/source3/rpc_parse/parse_reg.c index abb00e1572..b97fe3958b 100644 --- a/source3/rpc_parse/parse_reg.c +++ b/source3/rpc_parse/parse_reg.c @@ -767,7 +767,7 @@ void make_reg_r_info(REG_R_INFO *r_r, if (r_r == NULL || os_type == NULL) return; - len = strlen(os_type) * 2; + len = strlen(os_type); r_r->ptr1 = 1; r_r->level = level; @@ -775,11 +775,8 @@ void make_reg_r_info(REG_R_INFO *r_r, r_r->ptr_type = 1; make_buffer2(&(r_r->uni_type), os_type, len); - r_r->ptr2 = 1; - r_r->unknown_0 = len; - - r_r->ptr3 = 1; - r_r->unknown_1 = len; + r_r->ptr2 = r_r->ptr3 = 1; + r_r->unknown_0 = r_r->unknown_1 = len * 2; r_r->status = status; } -- cgit