diff options
author | Andrew Bartlett <abartlet@samba.org> | 2005-07-21 07:59:01 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:29:52 -0500 |
commit | 2a0cf520e3255d8e1bdec1bedd710489619de614 (patch) | |
tree | a8d22ca77e1496ed94b611a29e58a7bd00cdc39e /source4/lib/ldb/common | |
parent | c7204bd9856dd4a58c420a590f1b2abab8aaa70e (diff) | |
download | samba-2a0cf520e3255d8e1bdec1bedd710489619de614.tar.gz samba-2a0cf520e3255d8e1bdec1bedd710489619de614.tar.bz2 samba-2a0cf520e3255d8e1bdec1bedd710489619de614.zip |
r8667: Further simply the provision script, by removing the 'name' attribute.
This is now calculated on the fly for every add and modify.
Andrew Bartlett
(This used to be commit ed1f2e029c840d2b3ecb49dbe6e8cd67588eeeed)
Diffstat (limited to 'source4/lib/ldb/common')
-rw-r--r-- | source4/lib/ldb/common/ldb_modules.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/lib/ldb/common/ldb_modules.c b/source4/lib/ldb/common/ldb_modules.c index dc1a90ebc2..d6213be79a 100644 --- a/source4/lib/ldb/common/ldb_modules.c +++ b/source4/lib/ldb/common/ldb_modules.c @@ -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); |