From 836202f6008de333f22635b3badef328629fab88 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sun, 17 Dec 2006 13:20:57 +0000 Subject: r20224: the struct element msDs_Schema_Extensions and the attribute name "msDs-Schema-Extensions" doesn't match so we need to pass 2 parameters to the GET_BLOB() macro metze (This used to be commit e50cf96fea1318853a8cfc0061afcad9cbad7e2c) --- source4/dsdb/schema/schema_init.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source4/dsdb/schema') diff --git a/source4/dsdb/schema/schema_init.c b/source4/dsdb/schema/schema_init.c index 02f2a18517..228b48907a 100644 --- a/source4/dsdb/schema/schema_init.c +++ b/source4/dsdb/schema/schema_init.c @@ -141,9 +141,9 @@ WERROR dsdb_map_int2oid(uint32_t in, TALLOC_CTX *mem_ctx, const char **out) (p)->elem = samdb_result_guid(msg, #elem);\ } while (0) -#define GET_BLOB(p, elem) do { \ +#define GET_BLOB(p, elem, attr) do { \ const struct ldb_val *_val;\ - _val = ldb_msg_find_ldb_val(msg, #elem);\ + _val = ldb_msg_find_ldb_val(msg, attr);\ if (_val) {\ (p)->elem = *_val;\ (void)talloc_steal(p, (p)->elem.data);\ @@ -175,7 +175,7 @@ WERROR dsdb_attribute_from_ldb(struct ldb_message *msg, TALLOC_CTX *mem_ctx, str status = dsdb_map_oid2int(attr->attributeSyntax_oid, &attr->attributeSyntax_id); W_ERROR_NOT_OK_RETURN(status); GET_UINT32(attr, oMSyntax); - GET_BLOB(attr, oMObjectClass); + GET_BLOB(attr, oMObjectClass, "oMObjectClass"); GET_BOOL(attr, isSingleValued, True); GET_UINT32(attr, rangeLower); @@ -183,7 +183,7 @@ WERROR dsdb_attribute_from_ldb(struct ldb_message *msg, TALLOC_CTX *mem_ctx, str GET_BOOL(attr, extendedCharsAllowed, False); GET_UINT32(attr, schemaFlagsEx); - GET_BLOB(attr, msDs_Schema_Extensions); + GET_BLOB(attr, msDs_Schema_Extensions, "msDs-Schema-Extensions"); GET_BOOL(attr, showInAdvancedViewOnly, False); GET_STRING(attr, adminDisplayName, True); @@ -226,7 +226,7 @@ WERROR dsdb_class_from_ldb(struct ldb_message *msg, TALLOC_CTX *mem_ctx, struct GET_STRING(obj, defaultSecurityDescriptor, False); GET_UINT32(obj, schemaFlagsEx); - GET_BLOB(obj, msDs_Schema_Extensions); + GET_BLOB(obj, msDs_Schema_Extensions, "msDs-Schema-Extensions"); GET_BOOL(obj, showInAdvancedViewOnly, False); GET_STRING(obj, adminDisplayName, True); -- cgit