diff options
Diffstat (limited to 'source4/lib/ldb/common')
-rw-r--r-- | source4/lib/ldb/common/ldb_modules.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/common/ldb_modules.c b/source4/lib/ldb/common/ldb_modules.c index a7cfd81d46..37be07c1ca 100644 --- a/source4/lib/ldb/common/ldb_modules.c +++ b/source4/lib/ldb/common/ldb_modules.c @@ -80,7 +80,7 @@ int ldb_load_modules(struct ldb_context *ldb, const char *options[]) } } - if (!modules) { /* no modules in the options, look for @MODULES in the db */ + if (!modules && strcmp("ldap", ldb->modules->ops->name)) { /* no modules in the options, look for @MODULES in the db (not for ldap) */ int ret, j, k; char * attrs[] = { "@MODULE" }; struct ldb_message **msg; |