s3:idmap Use idmap.idl defined structures and constants
authorAndrew Bartlett <abartlet@samba.org>
Mon, 24 May 2010 00:51:10 +0000 (10:51 +1000)
committerMichael Adam <obnox@samba.org>
Tue, 1 Jun 2010 08:33:13 +0000 (10:33 +0200)
This allows these structures to be shared across all of Samba

The additional name type ID_TYPE_BOTH is unused in source3 code at
this time.

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
source3/include/smb.h

index a93caa7bf1b5120de04e67f77b41e2020d6f1b39..89b3572d67e983a8336f5e9271aee2cd0612b767 100644 (file)
@@ -197,30 +197,7 @@ typedef union unid_t {
                                        |LOOKUP_NAME_WKN\
                                        |LOOKUP_NAME_DOMAIN)
 
-enum id_mapping {
-       ID_UNKNOWN = 0,
-       ID_MAPPED,
-       ID_UNMAPPED,
-       ID_EXPIRED
-};
-
-enum id_type {
-       ID_TYPE_NOT_SPECIFIED = 0,
-       ID_TYPE_UID,
-       ID_TYPE_GID
-};
-
-struct unixid {
-       uint32_t id;
-       enum id_type type;
-};
-
-struct id_map {
-       struct dom_sid *sid;
-       struct unixid xid;
-       enum id_mapping status;
-};
-
+#include "librpc/gen_ndr/idmap.h"
 #include "librpc/gen_ndr/epmapper.h"
 #include "librpc/gen_ndr/krb5pac.h"
 #include "librpc/gen_ndr/dcerpc.h"