diff options
author | Matthieu Patou <mat@matws.net> | 2012-05-30 10:57:06 -0700 |
---|---|---|
committer | Matthieu Patou <mat@matws.net> | 2012-06-22 23:22:03 -0700 |
commit | 283af3857c13501b91484d86127f82d3cbfa936a (patch) | |
tree | 6fa3b92c00fb358816ab5ad8b0f34bc0e780c013 /source4/dsdb/samdb | |
parent | 9374ee1ba1dc1df3d5cdab1755ca9bfac338a4ae (diff) | |
download | samba-283af3857c13501b91484d86127f82d3cbfa936a.tar.gz samba-283af3857c13501b91484d86127f82d3cbfa936a.tar.bz2 samba-283af3857c13501b91484d86127f82d3cbfa936a.zip |
s4-extended: do not try to fix if there is no schema
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/extended_dn_in.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/extended_dn_in.c b/source4/dsdb/samdb/ldb_modules/extended_dn_in.c index 72acf07192..c21a1ea69b 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; |