r9595: Add ldb map module
[samba.git] / source / lib / samba3 / ldb_samba3.c
similarity index 67%
rename from source/lib/ldb/samba/ldb_samba3.c
rename to source/lib/samba3/ldb_samba3.c
index 6a7bfc62988a81130e98ef0b01804575400f9c2d..fa13daa611678e71c90a722482bbb6e360f22880 100644 (file)
 #include "ldb/include/ldb.h"
 #include "ldb/include/ldb_private.h"
 
+/* 
+ * sambaGroupMapping -> group
+ *     gidNumber -> ???
+ *     sambaSID -> member
+ *     sambaGroupType -> groupType
+ *     displayName -> name
+ *     description -> description
+ *     sambaSIDList -> member 
+ */
+
+struct ldb_map_mappings samba3_mappings;
+
+/* the init function */
+#ifdef HAVE_DLOPEN_DISABLED
+ struct ldb_module *init_module(struct ldb_context *ldb, const char *options[])
+#else
+struct ldb_module *ldb_samba3_module_init(struct ldb_context *ldb, const char *options[])
+#endif
+{
+       return ldb_map_init(ldb, &samba3_mappings, options);
+}