diff options
Diffstat (limited to 'source4/ldap_server/ldap_rootdse.c')
-rw-r--r-- | source4/ldap_server/ldap_rootdse.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/ldap_server/ldap_rootdse.c b/source4/ldap_server/ldap_rootdse.c index 9d19f71fcb..568623f23d 100644 --- a/source4/ldap_server/ldap_rootdse.c +++ b/source4/ldap_server/ldap_rootdse.c @@ -294,7 +294,8 @@ static NTSTATUS rootdse_Search(struct ldapsrv_partition *partition, struct ldaps attrs[j] = NULL; } - count = ldb_search(ldb, NULL, 0, "dn=cn=rootDSE", attrs, &res); + count = ldb_search(ldb, ldb_dn_explode(local_ctx, "cn=rootDSE"), 0, + NULL, attrs, &res); talloc_steal(local_ctx, res); if (count == 1) { |