r8667: Further simply the provision script, by removing the 'name' attribute.
[kai/samba.git] / source / lib / ldb / common / ldb_modules.c
index dc1a90ebc2087c66e925abf0e0850c862777b75f..d6213be79adbb94d8836bd8a9ce50e45d56cf513 100644 (file)
@@ -199,6 +199,16 @@ int ldb_load_modules(struct ldb_context *ldb, const char *options[])
                        continue;
                }
 
+               if (strcmp(modules[i], "rdn_name") == 0) {
+                       current = rdn_name_module_init(ldb, options);
+                       if (!current) {
+                               ldb_debug(ldb, LDB_DEBUG_FATAL, "function 'init_module' in %s fails\n", modules[i]);
+                               return -1;
+                       }
+                       DLIST_ADD(ldb->modules, current);
+                       continue;
+               }
+
 #ifdef _SAMBA_BUILD_
                if (strcmp(modules[i], "samldb") == 0) {
                        current = samldb_module_init(ldb, options);