diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-11-13 21:31:03 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-11-16 16:37:27 +0100 |
commit | 6770fd12cc2342a51b3fef43d8432191b6491d15 (patch) | |
tree | 6d98e3e5e265577a14370004fbe72b5bd8f51353 /source4/dsdb | |
parent | 2cff27cefdd7f898349e8853f2c6307d1fb28855 (diff) | |
download | samba-6770fd12cc2342a51b3fef43d8432191b6491d15.tar.gz samba-6770fd12cc2342a51b3fef43d8432191b6491d15.tar.bz2 samba-6770fd12cc2342a51b3fef43d8432191b6491d15.zip |
s4:dsdb/schema: we don't need to use find_syntax_map_by_ad_oid() as the syntax is already known
metze
Diffstat (limited to 'source4/dsdb')
-rw-r--r-- | source4/dsdb/schema/schema_description.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/dsdb/schema/schema_description.c b/source4/dsdb/schema/schema_description.c index c3c37b4653..9e162f28b1 100644 --- a/source4/dsdb/schema/schema_description.c +++ b/source4/dsdb/schema/schema_description.c @@ -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, |