summaryrefslogtreecommitdiff
path: root/source3/rpc_parse
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2005-02-07 14:14:44 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:55:34 -0500
commite98f56373bca0efc200bc3a4263477e1790a746b (patch)
treeb90a2b814be5fffe100b7660f5493e5323836925 /source3/rpc_parse
parent5a595ccff88c59af42b7ac23ac5cf75e33104137 (diff)
downloadsamba-e98f56373bca0efc200bc3a4263477e1790a746b.tar.gz
samba-e98f56373bca0efc200bc3a4263477e1790a746b.tar.bz2
samba-e98f56373bca0efc200bc3a4263477e1790a746b.zip
r5262: Fix server_role in the samr_query_dom_info calls. When we are a BDC we
should not say we are a PDC. Guenther (This used to be commit 6cdf3b97de2c28ac92f972621b0ce04c1c80cea5)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r--source3/rpc_parse/parse_samr.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/rpc_parse/parse_samr.c b/source3/rpc_parse/parse_samr.c
index 748ee1fb7c..27570ae821 100644
--- a/source3/rpc_parse/parse_samr.c
+++ b/source3/rpc_parse/parse_samr.c
@@ -564,9 +564,9 @@ static BOOL sam_io_unk_info6(const char *desc, SAM_UNK_INFO_6 * u_6,
inits a structure.
********************************************************************/
-void init_unk_info7(SAM_UNK_INFO_7 * u_7)
+void init_unk_info7(SAM_UNK_INFO_7 * u_7, uint32 server_role)
{
- u_7->unknown_0 = 0x0003;
+ u_7->server_role = server_role;
}
/*******************************************************************
@@ -582,7 +582,7 @@ static BOOL sam_io_unk_info7(const char *desc, SAM_UNK_INFO_7 * u_7,
prs_debug(ps, depth, desc, "sam_io_unk_info7");
depth++;
- if(!prs_uint16("unknown_0", ps, depth, &u_7->unknown_0)) /* 0x0003 */
+ if(!prs_uint16("server_role", ps, depth, &u_7->server_role))
return False;
return True;
@@ -697,7 +697,7 @@ inits a structure.
void init_unk_info2(SAM_UNK_INFO_2 * u_2,
const char *comment, const char *domain, const char *server,
- uint32 seq_num, uint32 num_users, uint32 num_groups, uint32 num_alias, NTTIME nt_logout)
+ uint32 seq_num, uint32 num_users, uint32 num_groups, uint32 num_alias, NTTIME nt_logout, uint32 server_role)
{
u_2->logout.low = nt_logout.low;
u_2->logout.high = nt_logout.high;
@@ -707,7 +707,7 @@ void init_unk_info2(SAM_UNK_INFO_2 * u_2,
u_2->unknown_4 = 0x00000001;
- u_2->unknown_5 = 0x00000003;
+ u_2->server_role = server_role;
u_2->unknown_6 = 0x00000001;
u_2->num_domain_usrs = num_users;
u_2->num_domain_grps = num_groups;
@@ -754,7 +754,7 @@ static BOOL sam_io_unk_info2(const char *desc, SAM_UNK_INFO_2 * u_2,
if(!prs_uint32("unknown_4 ", ps, depth, &u_2->unknown_4)) /* 0x0000 0001 */
return False;
- if(!prs_uint32("unknown_5 ", ps, depth, &u_2->unknown_5)) /* 0x0000 0003 */
+ if(!prs_uint32("server_role ", ps, depth, &u_2->server_role))
return False;
if(!prs_uint32("unknown_6 ", ps, depth, &u_2->unknown_6)) /* 0x0000 0001 */
return False;