summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules/normalise.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-03-04 13:40:50 +1100
committerAndrew Bartlett <abartlet@samba.org>2008-03-04 13:40:50 +1100
commit8a10979e6b5baaf9d4ef1703f056cdae6a81cf0e (patch)
tree0e8fd2cc2a729e3d38246ab4af8de97731d8172b /source4/dsdb/samdb/ldb_modules/normalise.c
parent736ae6a56653a8d20f57a7b8a6221eb45dba720c (diff)
downloadsamba-8a10979e6b5baaf9d4ef1703f056cdae6a81cf0e.tar.gz
samba-8a10979e6b5baaf9d4ef1703f056cdae6a81cf0e.tar.bz2
samba-8a10979e6b5baaf9d4ef1703f056cdae6a81cf0e.zip
The DN in objectCategory should, if possible, be returned pretty...
This avoids going via the canonicalise_fn(), which will upper case the DN Andrew Bartlett (This used to be commit cdff1b0802437d713652b89f4522d3cce97c30ec)
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/normalise.c')
-rw-r--r--source4/dsdb/samdb/ldb_modules/normalise.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/normalise.c b/source4/dsdb/samdb/ldb_modules/normalise.c
index 695393d4e8..a0eff43534 100644
--- a/source4/dsdb/samdb/ldb_modules/normalise.c
+++ b/source4/dsdb/samdb/ldb_modules/normalise.c
@@ -106,8 +106,8 @@ static int normalise_search_callback(struct ldb_context *ldb, void *context, str
continue;
}
/* Look to see if this attributeSyntax is a DN */
- if ((strcmp(attribute->attributeSyntax_oid, "2.5.5.1") != 0) &&
- (strcmp(attribute->attributeSyntax_oid, "2.5.5.7") != 0)) {
+ if (!((strcmp(attribute->attributeSyntax_oid, "2.5.5.1") == 0) ||
+ (strcmp(attribute->attributeSyntax_oid, "2.5.5.7") == 0))) {
continue;
}
for (j = 0; j < ares->message->elements[i].num_values; j++) {