From 9aba116607c0b85a371c3556a6483bc662c769a3 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 22 Dec 2004 16:58:43 +0000 Subject: r4331: Implement SAMR query_dom_info-call info-level 8 server- and client-side, based on samba4-idl. This saves us an enormous amount of totally unnecessary ldap-traffic when several hundreds of winbind-daemons query a Samba3 DC just to get the fake SAM-sequence-number (time(NULL)) by enumerating all users, all groups and all aliases when query-dom-info level 2 is used. Note that we apparently never get the sequence number right (we parse a uint32, although it's a uint64, at least in samba4 idl). For the time being, I would propose to stay with that behaviour. Guenther (This used to be commit f9ab15a986626581000d4b93961184c501f36b93) --- source3/include/rpc_samr.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'source3/include/rpc_samr.h') diff --git a/source3/include/rpc_samr.h b/source3/include/rpc_samr.h index c0c7e389e5..e3fbebaa77 100644 --- a/source3/include/rpc_samr.h +++ b/source3/include/rpc_samr.h @@ -537,6 +537,13 @@ typedef struct sam_unknown_info_7_info } SAM_UNK_INFO_7; +typedef struct sam_unknown_info_8_info +{ + UINT64_S seq_num; + NTTIME domain_create_time; + +} SAM_UNK_INFO_8; + typedef struct sam_unknown_info_12_inf { NTTIME duration; @@ -564,8 +571,7 @@ typedef struct sam_unknown_info_2_inf pointer is referring to */ - uint32 seq_num; /* some sort of incrementing sequence number? */ - uint32 unknown_3; /* 0x0000 0000 */ + UINT64_S seq_num; uint32 unknown_4; /* 0x0000 0001 */ uint32 unknown_5; /* 0x0000 0003 */ @@ -603,6 +609,7 @@ typedef struct sam_unknown_ctr_info SAM_UNK_INFO_5 inf5; SAM_UNK_INFO_6 inf6; SAM_UNK_INFO_7 inf7; + SAM_UNK_INFO_8 inf8; SAM_UNK_INFO_12 inf12; } info; -- cgit