s4 - Mapped AD schema to existing FDS schema.
[samba.git] / source4 / dsdb / schema / schema_convert_to_ol.c
index c0ab5c2af85f1afb5afaa598970f2fc969acbc27..f858dc35e90de94ce258d6963e4e5e61953d384c 100644 (file)
@@ -91,6 +91,14 @@ static char *print_schema_recursive(char *append_to_string, struct dsdb_schema *
                        }
                }
                
+               /* We might have been asked to remap this subClassOf, due to a conflict */
+               for (j=0; subClassOf && attr_map && attr_map[j].old_attr; j++) {
+                       if (strcasecmp(subClassOf, attr_map[j].old_attr) == 0) {
+                               subClassOf =  attr_map[j].new_attr;
+                               break;
+                       }
+               }
+               
                may = dsdb_full_attribute_list(mem_ctx, schema, &objectclass_name_as_el, DSDB_SCHEMA_ALL_MAY);
 
                for (j=0; may && may[j]; j++) {