summaryrefslogtreecommitdiff
path: root/librpc/idl/idmap.idl
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-05-24 10:15:04 +1000
committerAndrew Bartlett <abartlet@samba.org>2010-05-24 23:08:56 +1000
commit974ed9cf2c10ab3384c1070c22f5cd42908c95f1 (patch)
treece5725fd1fda68430d6742224920d46cfe7233c2 /librpc/idl/idmap.idl
parentf6aa0902025dc562748499d60f3257a0f47329c8 (diff)
downloadsamba-974ed9cf2c10ab3384c1070c22f5cd42908c95f1.tar.gz
s4:idmap Seperate idmap structures from winbind.idl and match to source3/ idmap
These structures now match those in use in the source3 code. I'm not sure if this is the better API or not, but it is far, far safer to remove a pointer than to add one. Andrew Bartlett
Diffstat (limited to 'librpc/idl/idmap.idl')
-rw-r--r--librpc/idl/idmap.idl34
1 files changed, 34 insertions, 0 deletions
diff --git a/librpc/idl/idmap.idl b/librpc/idl/idmap.idl
new file mode 100644
index 00000000000..65e4596adfa
--- /dev/null
+++ b/librpc/idl/idmap.idl
@@ -0,0 +1,34 @@
+#include "idl_types.h"
+
+import "security.idl";
+
+[
+ pointer_default(unique)
+]
+interface idmap
+{
+ typedef [public] enum {
+ ID_TYPE_NOT_SPECIFIED,
+ ID_TYPE_UID,
+ ID_TYPE_GID,
+ ID_TYPE_BOTH
+ } id_type;
+
+ typedef [public] struct {
+ uint32 id;
+ id_type type;
+ } unixid;
+
+ typedef[public] enum {
+ ID_UNKNOWN,
+ ID_MAPPED,
+ ID_UNMAPPED,
+ ID_EXPIRED
+ } id_mapping;
+
+ typedef [public] struct {
+ dom_sid *sid;
+ unixid xid;
+ id_mapping status;
+ } id_map;
+}