summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2010-06-28 21:28:30 +0300
committerAndrew Bartlett <abartlet@samba.org>2010-07-02 10:07:57 +1000
commitbf373d5c29737264724ae4f86e05a79d7b69b4ee (patch)
tree3c629eba5013e924135a5cc314c8b11db0500ef8
parent7c653c429a7d31d00620fc8cfda913a814c1048f (diff)
downloadsamba-bf373d5c29737264724ae4f86e05a79d7b69b4ee.tar.gz
samba-bf373d5c29737264724ae4f86e05a79d7b69b4ee.tar.bz2
samba-bf373d5c29737264724ae4f86e05a79d7b69b4ee.zip
s4-source4/dsdb/samdb/ldb_modules/schema_load.c: Use DSDB_FLAG_NEXT_MODULE flag
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--source4/dsdb/samdb/ldb_modules/schema_load.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/schema_load.c b/source4/dsdb/samdb/ldb_modules/schema_load.c
index 4df6f1e38a..cffe529a05 100644
--- a/source4/dsdb/samdb/ldb_modules/schema_load.c
+++ b/source4/dsdb/samdb/ldb_modules/schema_load.c
@@ -191,7 +191,7 @@ static int dsdb_schema_from_db(struct ldb_module *module, struct ldb_dn *schema_
*/
ret = dsdb_module_search(module, tmp_ctx, &a_res,
schema_dn, LDB_SCOPE_ONELEVEL, NULL,
- 0,
+ DSDB_FLAG_NEXT_MODULE,
"(objectClass=attributeSchema)");
if (ret != LDB_SUCCESS) {
ldb_asprintf_errstring(ldb,
@@ -205,6 +205,7 @@ static int dsdb_schema_from_db(struct ldb_module *module, struct ldb_dn *schema_
*/
ret = dsdb_module_search(module, tmp_ctx, &c_res,
schema_dn, LDB_SCOPE_ONELEVEL, NULL,
+ DSDB_FLAG_NEXT_MODULE |
DSDB_SEARCH_SHOW_DN_IN_STORAGE_FORMAT,
"(objectClass=classSchema)");
if (ret != LDB_SUCCESS) {