diff options
Diffstat (limited to 'librpc')
-rw-r--r-- | librpc/idl/idmap.idl | 34 | ||||
-rw-r--r-- | librpc/idl/wscript_build | 2 |
2 files changed, 35 insertions, 1 deletions
diff --git a/librpc/idl/idmap.idl b/librpc/idl/idmap.idl new file mode 100644 index 0000000000..65e4596adf --- /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; +} diff --git a/librpc/idl/wscript_build b/librpc/idl/wscript_build index b8c650197c..c5be1b7447 100644 --- a/librpc/idl/wscript_build +++ b/librpc/idl/wscript_build @@ -20,6 +20,6 @@ bld.SAMBA_PIDL_LIST('PIDL', output_dir='../gen_ndr') bld.SAMBA_PIDL_LIST('PIDL', - 'rap.idl', + 'rap.idl idmap.idl', options='--header --ndr-parser', output_dir='../gen_ndr') |