summaryrefslogtreecommitdiff
path: root/source4/lib/gendb.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/gendb.c')
-rw-r--r--source4/lib/gendb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/gendb.c b/source4/lib/gendb.c
index 92bbd8155c..4bf76a7f64 100644
--- a/source4/lib/gendb.c
+++ b/source4/lib/gendb.c
@@ -89,7 +89,7 @@ int gendb_search_dn(struct ldb_context *ldb,
struct ldb_message ***res,
const char * const *attrs)
{
- return gendb_search(ldb, mem_ctx, dn, res, attrs, NULL);
+ return gendb_search(ldb, mem_ctx, dn, res, attrs, "dn=%s", dn);
}
/*