summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-07-30 00:14:48 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:30:12 -0500
commitb30f0b0391a2b4214b24fef318b6a91865c8d14a (patch)
tree1507c4d2785b943610367729d0839f592700ccd4 /source4
parentc24a7249f074d2301079f7d354e4c1553391f4f3 (diff)
downloadsamba-b30f0b0391a2b4214b24fef318b6a91865c8d14a.tar.gz
samba-b30f0b0391a2b4214b24fef318b6a91865c8d14a.tar.bz2
samba-b30f0b0391a2b4214b24fef318b6a91865c8d14a.zip
r8855: Share this enum (describing the SamSync databases) between nbt and netlogon.
Andrew Bartlett (This used to be commit 5e29e1c68c1b1a957419320cef55395ba0fe6b6f)
Diffstat (limited to 'source4')
-rw-r--r--source4/librpc/idl/misc.idl9
-rw-r--r--source4/librpc/idl/nbt.idl8
-rw-r--r--source4/librpc/idl/netlogon.idl7
3 files changed, 15 insertions, 9 deletions
diff --git a/source4/librpc/idl/misc.idl b/source4/librpc/idl/misc.idl
index 745a7652c2..5d40753448 100644
--- a/source4/librpc/idl/misc.idl
+++ b/source4/librpc/idl/misc.idl
@@ -31,4 +31,13 @@ interface misc
SEC_CHAN_DOMAIN = 4,
SEC_CHAN_BDC = 6
} netr_SchannelType;
+
+ /* SAM database types */
+ typedef [public,v1_enum] enum {
+ SAM_DATABASE_DOMAIN = 0, /* Domain users and groups */
+ SAM_DATABASE_BUILTIN = 1, /* BUILTIN users and groups */
+ SAM_DATABASE_PRIVS = 2 /* Privileges */
+ } netr_SamDatabaseID;
+
+
}
diff --git a/source4/librpc/idl/nbt.idl b/source4/librpc/idl/nbt.idl
index fe41549327..e3c72480fc 100644
--- a/source4/librpc/idl/nbt.idl
+++ b/source4/librpc/idl/nbt.idl
@@ -405,11 +405,13 @@
uint16 lm20_token;
} nbt_netlogon_response_from_pdc2;
+ declare enum netr_SamDatabaseID;
+
/* announce change to UAS or SAM */
typedef struct {
- uint32 db_index;
- hyper serial;
- NTTIME timestamp;
+ netr_SamDatabaseID db_index;
+ hyper serial;
+ NTTIME timestamp;
} nbt_db_change;
/* used to announce SAM changes */
diff --git a/source4/librpc/idl/netlogon.idl b/source4/librpc/idl/netlogon.idl
index 7f7b9c5caa..48fd1e69dd 100644
--- a/source4/librpc/idl/netlogon.idl
+++ b/source4/librpc/idl/netlogon.idl
@@ -291,12 +291,7 @@ interface netlogon
/*****************/
/* Function 0x07 */
- /* SAM database types */
- typedef [v1_enum] enum {
- SAM_DATABASE_DOMAIN = 0, /* Domain users and groups */
- SAM_DATABASE_BUILTIN = 1, /* BUILTIN users and groups */
- SAM_DATABASE_PRIVS = 2 /* Privileges */
- } netr_SamDatabaseID;
+ declare enum netr_SamDatabaseID;
typedef struct {
unistr *account_name;