mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
r22559: Make the ad2OLschema tool case insensitive.
Andrew Bartlett
(This used to be commit ddcca38c65
)
This commit is contained in:
parent
729674054a
commit
6736106581
@ -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 */
|
/* 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++) {
|
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;
|
oid = oid_map[j].new_oid;
|
||||||
break;
|
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 */
|
/* 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++) {
|
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;
|
name = attr_map[j].new_attr;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -410,7 +410,7 @@ static struct schema_conv process_convert(struct ldb_context *ldb, enum convert_
|
|||||||
* due to a conflict, or lack of
|
* due to a conflict, or lack of
|
||||||
* implementation */
|
* implementation */
|
||||||
for (j=0; syntax_oid && oid_map[j].old_oid; j++) {
|
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;
|
syntax_oid = oid_map[j].new_oid;
|
||||||
break;
|
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 */
|
/* We might have been asked to remap this oid, due to a conflict */
|
||||||
for (j=0; oid_map[j].old_oid; j++) {
|
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;
|
oid = oid_map[j].new_oid;
|
||||||
break;
|
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 */
|
/* 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++) {
|
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;
|
name = attr_map[j].new_attr;
|
||||||
break;
|
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; \
|
const char *attr_name = (const char *)attributes->values[k].data; \
|
||||||
/* We might have been asked to remap this name, due to a conflict */ \
|
/* 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++) { \
|
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; \
|
attr_name = attr_map[attr_idx].new_attr; \
|
||||||
break; \
|
break; \
|
||||||
} \
|
} \
|
||||||
|
Loading…
Reference in New Issue
Block a user