summaryrefslogtreecommitdiff
path: root/source3/include/rpc_lsa.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-01-25 02:35:50 +0000
committerJeremy Allison <jra@samba.org>2001-01-25 02:35:50 +0000
commitcf90dbd158de152221f294c478cd4f7ba44cdb5c (patch)
tree02e8daa6137c0d8c7abf0955314bca36419b5385 /source3/include/rpc_lsa.h
parent4655268ad17004389f30b5bc85f128cf55b73ecb (diff)
downloadsamba-cf90dbd158de152221f294c478cd4f7ba44cdb5c.tar.gz
samba-cf90dbd158de152221f294c478cd4f7ba44cdb5c.tar.bz2
samba-cf90dbd158de152221f294c478cd4f7ba44cdb5c.zip
Fixed "object picker can't determine if object in domain" bug seen from W2K
clients. Did this by importing Samba-TNG code that correctly handles LSA lookups. *MANY* thanks to Luke, Sander, Elrond and the rest of the TNG gang ! Jeremy (This used to be commit f76dc952f70862a6a390e9f35edd651867842a01)
Diffstat (limited to 'source3/include/rpc_lsa.h')
-rw-r--r--source3/include/rpc_lsa.h33
1 files changed, 26 insertions, 7 deletions
diff --git a/source3/include/rpc_lsa.h b/source3/include/rpc_lsa.h
index 90c5786a38..60daa261ba 100644
--- a/source3/include/rpc_lsa.h
+++ b/source3/include/rpc_lsa.h
@@ -70,6 +70,21 @@ typedef struct dom_query_info
typedef DOM_QUERY DOM_QUERY_3;
typedef DOM_QUERY DOM_QUERY_5;
+/* level 2 is auditing settings */
+typedef struct dom_query_2
+{
+ uint32 auditing_enabled;
+ uint32 count1; /* usualy 7, at least on nt4sp4 */
+ uint32 count2; /* the same */
+ uint32 *auditsettings;
+} DOM_QUERY_2;
+
+/* level 6 is server role information */
+typedef struct dom_query_6
+{
+ uint16 server_role; /* 2=backup, 3=primary */
+} DOM_QUERY_6;
+
typedef struct seq_qos_info
{
uint32 len; /* 12 */
@@ -156,18 +171,22 @@ typedef struct lsa_query_info
} LSA_Q_QUERY_INFO;
+/* LSA_INFO_UNION */
+typedef union lsa_info_union
+{
+ DOM_QUERY_2 id2;
+ DOM_QUERY_3 id3;
+ DOM_QUERY_5 id5;
+ DOM_QUERY_6 id6;
+} LSA_INFO_UNION;
+
/* LSA_R_QUERY_INFO - response to LSA query info policy */
typedef struct lsa_r_query_info
{
uint32 undoc_buffer; /* undocumented buffer pointer */
uint16 info_class; /* info class (same as info class in request) */
-
- union
- {
- DOM_QUERY_3 id3;
- DOM_QUERY_5 id5;
-
- } dom;
+
+ LSA_INFO_UNION dom;
uint32 status; /* return code */