diff options
author | Andrew Bartlett <abartlet@samba.org> | 2007-04-28 16:39:24 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:51:44 -0500 |
commit | 6736106581bd962b26cc2d903a9bb681a4a96d56 (patch) | |
tree | 67efe4b73c386b4863b13eff8bb9435f17017d94 /source4/lib | |
parent | 729674054aa461b17a43a371f6891263d700ac7a (diff) | |
download | samba-6736106581bd962b26cc2d903a9bb681a4a96d56.tar.gz samba-6736106581bd962b26cc2d903a9bb681a4a96d56.tar.bz2 samba-6736106581bd962b26cc2d903a9bb681a4a96d56.zip |
r22559: Make the ad2OLschema tool case insensitive.
Andrew Bartlett
(This used to be commit ddcca38c65c12a4e6a49151296ab36a458c53cb6)
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/ldb/tools/ad2oLschema.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/lib/ldb/tools/ad2oLschema.c b/source4/lib/ldb/tools/ad2oLschema.c index 16e3c8941e..2287882e23 100644 --- a/source4/lib/ldb/tools/ad2oLschema.c +++ b/source4/lib/ldb/tools/ad2oLschema.c @@ -355,7 +355,7 @@ static struct schema_conv process_convert(struct ldb_context *ldb, enum convert_ /* We might have been asked to remap this oid, due to a conflict */ for (j=0; oid && oid_map && oid_map[j].old_oid; j++) { - if (strcmp(oid, oid_map[j].old_oid) == 0) { + if (strcasecmp(oid, oid_map[j].old_oid) == 0) { oid = oid_map[j].new_oid; break; } @@ -377,7 +377,7 @@ static struct schema_conv process_convert(struct ldb_context *ldb, enum convert_ /* We might have been asked to remap this name, due to a conflict */ for (j=0; name && attr_map && attr_map[j].old_attr; j++) { - if (strcmp(name, attr_map[j].old_attr) == 0) { + if (strcasecmp(name, attr_map[j].old_attr) == 0) { name = attr_map[j].new_attr; break; } @@ -410,7 +410,7 @@ static struct schema_conv process_convert(struct ldb_context *ldb, enum convert_ * due to a conflict, or lack of * implementation */ for (j=0; syntax_oid && oid_map[j].old_oid; j++) { - if (strcmp(syntax_oid, oid_map[j].old_oid) == 0) { + if (strcasecmp(syntax_oid, oid_map[j].old_oid) == 0) { syntax_oid = oid_map[j].new_oid; break; } @@ -475,7 +475,7 @@ static struct schema_conv process_convert(struct ldb_context *ldb, enum convert_ /* We might have been asked to remap this oid, due to a conflict */ for (j=0; oid_map[j].old_oid; j++) { - if (strcmp(oid, oid_map[j].old_oid) == 0) { + if (strcasecmp(oid, oid_map[j].old_oid) == 0) { oid = oid_map[j].new_oid; break; } @@ -501,7 +501,7 @@ static struct schema_conv process_convert(struct ldb_context *ldb, enum convert_ /* We might have been asked to remap this name, due to a conflict */ for (j=0; name && attr_map && attr_map[j].old_attr; j++) { - if (strcmp(name, attr_map[j].old_attr) == 0) { + if (strcasecmp(name, attr_map[j].old_attr) == 0) { name = attr_map[j].new_attr; break; } @@ -551,7 +551,7 @@ static struct schema_conv process_convert(struct ldb_context *ldb, enum convert_ const char *attr_name = (const char *)attributes->values[k].data; \ /* We might have been asked to remap this name, due to a conflict */ \ for (attr_idx=0; attr_name && attr_map && attr_map[attr_idx].old_attr; attr_idx++) { \ - if (strcmp(attr_name, attr_map[attr_idx].old_attr) == 0) { \ + if (strcasecmp(attr_name, attr_map[attr_idx].old_attr) == 0) { \ attr_name = attr_map[attr_idx].new_attr; \ break; \ } \ |