git.samba.org
/
metze
/
samba
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
s4-extended: do not try to fix if there is no schema
[metze/samba/wip.git]
/
source4
/
dsdb
/
samdb
/
ldb_modules
/
extended_dn_in.c
diff --git
a/source4/dsdb/samdb/ldb_modules/extended_dn_in.c
b/source4/dsdb/samdb/ldb_modules/extended_dn_in.c
index 72acf071921a32c577c527c867ef843c538705c0..c21a1ea69bc0edb40facff48fcad71a034f4af13 100644
(file)
--- 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;