From 283af3857c13501b91484d86127f82d3cbfa936a Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Wed, 30 May 2012 10:57:06 -0700 Subject: [PATCH] s4-extended: do not try to fix if there is no schema --- source4/dsdb/samdb/ldb_modules/extended_dn_in.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source4/dsdb/samdb/ldb_modules/extended_dn_in.c b/source4/dsdb/samdb/ldb_modules/extended_dn_in.c index 72acf071921..c21a1ea69bc 100644 --- a/source4/dsdb/samdb/ldb_modules/extended_dn_in.c +++ b/source4/dsdb/samdb/ldb_modules/extended_dn_in.c @@ -360,6 +360,10 @@ static int extended_dn_filter_callback(struct ldb_parse_tree *tree, void *privat return LDB_SUCCESS; } + if (!filter_ctx->schema) { + /* Schema not setup yet */ + return LDB_SUCCESS; + } attribute = dsdb_attribute_by_lDAPDisplayName(filter_ctx->schema, tree->u.equality.attr); if (attribute == NULL) { return LDB_SUCCESS; -- 2.11.4.GIT