From c32ec0a10041dba50be23611f25e4aae8c45830c Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 4 Jan 2007 14:42:13 +0000 Subject: [PATCH] r20523: match the lDAPDisplayName case insensitive metze --- source/dsdb/schema/schema_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/dsdb/schema/schema_init.c b/source/dsdb/schema/schema_init.c index 6caefef9a76..bed4e78525b 100644 --- a/source/dsdb/schema/schema_init.c +++ b/source/dsdb/schema/schema_init.c @@ -714,7 +714,7 @@ const struct dsdb_attribute *dsdb_attribute_by_lDAPDisplayName(const struct dsdb /* TODO: add binary search */ for (cur = schema->attributes; cur; cur = cur->next) { - if (strcmp(cur->lDAPDisplayName, name) != 0) continue; + if (strcasecmp(cur->lDAPDisplayName, name) != 0) continue; return cur; } @@ -769,7 +769,7 @@ const struct dsdb_class *dsdb_class_by_lDAPDisplayName(const struct dsdb_schema /* TODO: add binary search */ for (cur = schema->classes; cur; cur = cur->next) { - if (strcmp(cur->lDAPDisplayName, name) != 0) continue; + if (strcasecmp(cur->lDAPDisplayName, name) != 0) continue; return cur; }