summaryrefslogtreecommitdiff
path: root/source3/include/passdb.h
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-11-26 18:15:39 +0100
committerGünther Deschner <gd@samba.org>2009-11-26 19:21:33 +0100
commit86f4536b7a128922b5d5808557e70fa243442361 (patch)
tree13e7f69d3006aee0bc7acc5b4e9ecf984c946775 /source3/include/passdb.h
parent4d0fca4472500b92cccff8de5a467fe09eb25455 (diff)
downloadsamba-86f4536b7a128922b5d5808557e70fa243442361.tar.gz
samba-86f4536b7a128922b5d5808557e70fa243442361.tar.bz2
samba-86f4536b7a128922b5d5808557e70fa243442361.zip
s3-passdb: move some defines out of rpc headers (they really belong to passdb).
Guenther
Diffstat (limited to 'source3/include/passdb.h')
-rw-r--r--source3/include/passdb.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/source3/include/passdb.h b/source3/include/passdb.h
index c8e4bc21e4..9be2a697a6 100644
--- a/source3/include/passdb.h
+++ b/source3/include/passdb.h
@@ -23,6 +23,21 @@
#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
*/