r4568: make use of SidType and move it to lsa.idl
authorStefan Metzmacher <metze@samba.org>
Thu, 6 Jan 2005 13:34:18 +0000 (13:34 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:08:28 +0000 (13:08 -0500)
metze

source/dsdb/common/flag_mapping.c
source/librpc/idl/lsa.idl
source/librpc/idl/samr.idl

index 30c5b0cf13e9d44344723f0a3da8c66906fdc901..8fdded98f5fd2ba09c7d793b6d84f9897c04c0fd 100644 (file)
@@ -119,7 +119,7 @@ uint32_t samdb_gtype2atype(uint32_t gtype)
 }
 
 /* turn a sAMAccountType into a SID_NAME_USE */
-enum samr_SidType samdb_atype_map(uint32_t atype)
+enum lsa_SidType samdb_atype_map(uint32_t atype)
 {
        switch (atype & 0xF0000000) {
        case ATYPE_GLOBAL_GROUP:
index cb3457de8909dfe016e25921d248a552b4dcdca4..84aa0145a123d9b4cec374205509d350839ba3be 100644 (file)
 
        /******************/
        /* Function: 0x0e */
-
-       typedef struct {
-               uint16 sid_type;
+       typedef enum {
+               SID_NAME_USE_NONE = 0,/* NOTUSED */
+               SID_NAME_USER    = 1, /* user */
+               SID_NAME_DOM_GRP = 2, /* domain group */
+               SID_NAME_DOMAIN  = 3, /* domain: don't know what this is */
+               SID_NAME_ALIAS   = 4, /* local group */
+               SID_NAME_WKN_GRP = 5, /* well-known group */
+               SID_NAME_DELETED = 6, /* deleted account: needed for c2 rating */
+               SID_NAME_INVALID = 7, /* invalid account */
+               SID_NAME_UNKNOWN = 8  /* oops. */
+       } lsa_SidType;
+
+       typedef struct {
+               lsa_SidType sid_type;
                uint32 rid;
                uint32 sid_index;
        } lsa_TranslatedSid;
        /* Function: 0x0f */
 
        typedef struct {
-               uint16 sid_type;
+               lsa_SidType sid_type;
                lsa_String name;
                uint32 sid_index;
        } lsa_TranslatedName;
        /* Function 0x39 */
 
        typedef struct {
-               uint16 sid_type;
+               lsa_SidType sid_type;
                lsa_String name;
                uint32 sid_index;
                uint32 unknown;
        /* Function 0x3a */
 
        typedef struct {
-               uint16 sid_type;
+               lsa_SidType sid_type;
                uint32 rid;
                uint32 sid_index;
                uint32 unknown;
        /**********************/
        /* Function 0x44 */
        typedef struct {
-               uint16 sid_type;
+               lsa_SidType sid_type;
                dom_sid2 *sid;
                uint32 sid_index;
                uint32 unknown;
index 4e12369d7ceafa500e14155f040a226ada095c30..41414b1abe1e3b758b968556ffe952cf9b1fb35c 100644 (file)
        /************************/
        /* Function    0x10     */
 
-       typedef enum {
-               SID_NAME_USE_NONE = 0,/* NOTUSED */
-               SID_NAME_USER    = 1, /* user */
-               SID_NAME_DOM_GRP = 2, /* domain group */
-               SID_NAME_DOMAIN  = 3, /* domain: don't know what this is */
-               SID_NAME_ALIAS   = 4, /* local group */
-               SID_NAME_WKN_GRP = 5, /* well-known group */
-               SID_NAME_DELETED = 6, /* deleted account: needed for c2 rating */
-               SID_NAME_INVALID = 7, /* invalid account */
-               SID_NAME_UNKNOWN = 8  /* oops. */
-       } samr_SidType;
-
        typedef struct {
                [range(0,1024)]  uint32 count;
                [size_is(count)] uint32 *ids;