s3-passdb: move some defines out of rpc headers (they really belong to passdb).
[ira/wip.git] / source3 / include / passdb.h
index c8e4bc21e41c4975335c85821b5d49550ee6a635..9be2a697a606ad932ad373a4b527f8ffadf497d5 100644 (file)
 #ifndef _PASSDB_H
 #define _PASSDB_H
 
+/**********************************************************************
+ * Masks for mappings between unix uid and gid types and
+ * NT RIDS.
+ **********************************************************************/
+
+#define BASE_RID (0x000003E8L)
+
+/* Take the bottom bit. */
+#define RID_TYPE_MASK          1
+#define RID_MULTIPLIER                 2
+
+/* The two common types. */
+#define USER_RID_TYPE          0
+#define GROUP_RID_TYPE                 1
+
 /*
  * bit flags representing initialized fields in struct samu
  */