mirror of
https://github.com/samba-team/samba.git
synced 2025-11-27 08:23:49 +03:00
r20523: match the lDAPDisplayName case insensitive
metze
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
045ddfe1ec
commit
c32ec0a100
@@ -714,7 +714,7 @@ const struct dsdb_attribute *dsdb_attribute_by_lDAPDisplayName(const struct dsdb
|
|||||||
|
|
||||||
/* TODO: add binary search */
|
/* TODO: add binary search */
|
||||||
for (cur = schema->attributes; cur; cur = cur->next) {
|
for (cur = schema->attributes; cur; cur = cur->next) {
|
||||||
if (strcmp(cur->lDAPDisplayName, name) != 0) continue;
|
if (strcasecmp(cur->lDAPDisplayName, name) != 0) continue;
|
||||||
|
|
||||||
return cur;
|
return cur;
|
||||||
}
|
}
|
||||||
@@ -769,7 +769,7 @@ const struct dsdb_class *dsdb_class_by_lDAPDisplayName(const struct dsdb_schema
|
|||||||
|
|
||||||
/* TODO: add binary search */
|
/* TODO: add binary search */
|
||||||
for (cur = schema->classes; cur; cur = cur->next) {
|
for (cur = schema->classes; cur; cur = cur->next) {
|
||||||
if (strcmp(cur->lDAPDisplayName, name) != 0) continue;
|
if (strcasecmp(cur->lDAPDisplayName, name) != 0) continue;
|
||||||
|
|
||||||
return cur;
|
return cur;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user