diff options
Diffstat (limited to 'source4/dsdb')
-rw-r--r-- | source4/dsdb/common/util.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c index da4d0b3940..987864f748 100644 --- a/source4/dsdb/common/util.c +++ b/source4/dsdb/common/util.c @@ -3641,10 +3641,13 @@ int dsdb_search_one(struct ldb_context *ldb, talloc_free(tmp_ctx); return LDB_ERR_OPERATIONS_ERROR; } + ret = dsdb_search(ldb, tmp_ctx, &res, basedn, scope, attrs, + dsdb_flags, "%s", expression); + } else { + ret = dsdb_search(ldb, tmp_ctx, &res, basedn, scope, attrs, + dsdb_flags, NULL); } - ret = dsdb_search(ldb, tmp_ctx, &res, basedn, scope, attrs, - dsdb_flags, "%s", expression); if (ret != LDB_SUCCESS) { talloc_free(tmp_ctx); return ret; |