2b099a61645164e18b2209471b95d60a00c32c61
[nivanova/samba-autobuild/.git] / source4 / librpc / idl / misc.idl
1 /*
2   miscellaneous IDL structures
3 */
4
5
6 [
7         pointer_default(unique)
8 ]
9 interface misc
10 {
11         typedef [public,noprint,gensize,noejs] struct {
12                 uint32 time_low;
13                 uint16 time_mid;
14                 uint16 time_hi_and_version;
15                 uint8  clock_seq[2];
16                 uint8  node[6];
17         } GUID;
18
19         typedef [public] struct {
20                 uint32 handle_type;
21                 GUID   uuid;
22         } policy_handle;
23
24         /* secure channel types */
25         /* Only SEC_CHAN_WKSTA can forward requests to other domains. */
26
27         typedef [public] enum {
28                 SEC_CHAN_WKSTA   = 2,
29                 SEC_CHAN_DOMAIN  = 4,
30                 SEC_CHAN_BDC     = 6
31         } netr_SchannelType;
32
33         /* SAM database types */
34         typedef [public,v1_enum] enum {
35                 SAM_DATABASE_DOMAIN  = 0, /* Domain users and groups */
36                 SAM_DATABASE_BUILTIN = 1, /* BUILTIN users and groups */
37                 SAM_DATABASE_PRIVS   = 2 /* Privileges */
38         } netr_SamDatabaseID;
39
40         typedef [public,v1_enum] enum {
41                 SAMR_REJECT_OTHER      = 0,
42                 SAMR_REJECT_TOO_SHORT  = 1,
43                 SAMR_REJECT_IN_HISTORY = 2,
44                 SAMR_REJECT_COMPLEXITY = 5
45         } samr_RejectReason;
46
47         /* id used to identify a endpoint, possibly in a cluster */
48         typedef [public] struct {
49                 uint32 id;
50                 uint32 node;
51         } server_id;
52 }