s4:dsdb/schema: we don't need to use find_syntax_map_by_ad_oid() as the syntax is...
authorStefan Metzmacher <metze@samba.org>
Thu, 13 Nov 2008 20:31:03 +0000 (21:31 +0100)
committerStefan Metzmacher <metze@samba.org>
Sun, 16 Nov 2008 15:37:27 +0000 (16:37 +0100)
metze

source4/dsdb/schema/schema_description.c

index c3c37b46533320b56bb2e4ebcb8f6f68c6843aa8..9e162f28b19177061dde56590cdf3a640638a488 100644 (file)
@@ -80,14 +80,12 @@ char *schema_attribute_description(TALLOC_CTX *mem_ctx,
 char *schema_attribute_to_description(TALLOC_CTX *mem_ctx, const struct dsdb_attribute *attribute) 
 {
        char *schema_description;
-       const struct dsdb_syntax *map = find_syntax_map_by_ad_oid(attribute->attributeSyntax_oid);
-       const char *syntax = map ? map->ldap_oid : attribute->attributeSyntax_oid;
+       const char *syntax = attribute->syntax->ldap_oid;
        TALLOC_CTX *tmp_ctx = talloc_new(mem_ctx);
        if (!tmp_ctx) {
                return NULL;
        }
 
-       
        schema_description 
                = schema_attribute_description(mem_ctx, 
                                               TARGET_AD_SCHEMA_SUBENTRY,