summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/common
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-10-11 12:25:55 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:39:41 -0500
commit16279c67702671c3b5a620fa9372fa77a67eaaf5 (patch)
tree2ec091bfdc6fb467a37ca5fdd11d01c07a075772 /source4/lib/ldb/common
parent36d73b0e71eb3fbbe8d660b7609806b0355bd09c (diff)
downloadsamba-16279c67702671c3b5a620fa9372fa77a67eaaf5.tar.gz
samba-16279c67702671c3b5a620fa9372fa77a67eaaf5.tar.bz2
samba-16279c67702671c3b5a620fa9372fa77a67eaaf5.zip
r10895: allow 'dn=string' searches to work again. Windows doesn't allow these,
but they are so very useful for things like dn=@MODULES that I think its worth supporting them (This used to be commit e2e3193a98b0f81c7bdb02c98db375ca0449022a)
Diffstat (limited to 'source4/lib/ldb/common')
-rw-r--r--source4/lib/ldb/common/ldb_match.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/source4/lib/ldb/common/ldb_match.c b/source4/lib/ldb/common/ldb_match.c
index 78e4304f6c..14031a6dd1 100644
--- a/source4/lib/ldb/common/ldb_match.c
+++ b/source4/lib/ldb/common/ldb_match.c
@@ -151,13 +151,8 @@ static int ldb_match_equality(struct ldb_context *ldb,
struct ldb_dn *valuedn;
int ret;
- /* catch the old method of dn matching */
- if (ldb_attr_cmp(tree->u.equality.attr, "dn") == 0) {
- ldb_debug(ldb, LDB_DEBUG_FATAL, "attempt to match on 'dn' - should use distinguishedName");
- return 0;
- }
-
- if (ldb_attr_cmp(tree->u.equality.attr, "distinguishedName") == 0) {
+ if (ldb_attr_cmp(tree->u.equality.attr, "dn") == 0 ||
+ ldb_attr_cmp(tree->u.equality.attr, "distinguishedName") == 0) {
valuedn = ldb_dn_explode_casefold(ldb, tree->u.equality.value.data);
if (valuedn == NULL) {
return 0;