summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-12-17 13:20:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:29:24 -0500
commit836202f6008de333f22635b3badef328629fab88 (patch)
treee5753b067579b05345049cbdb1b1a848ad19bc8d /source4/dsdb
parent1fc9c6bf2cf9ac3872114b087dde0cdc9550c438 (diff)
downloadsamba-836202f6008de333f22635b3badef328629fab88.tar.gz
samba-836202f6008de333f22635b3badef328629fab88.tar.bz2
samba-836202f6008de333f22635b3badef328629fab88.zip
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)
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/schema/schema_init.c10
1 files changed, 5 insertions, 5 deletions
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);