summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-12-29 11:50:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:30:25 -0500
commit124cd6fb237c887ff9d645dfc053a2ffb178c73b (patch)
tree8f897009b37630db82c6239e5d390f6fd5912ba7 /source4
parent91837a908fd10899772ff6ceca43958b14cc86f3 (diff)
downloadsamba-124cd6fb237c887ff9d645dfc053a2ffb178c73b.tar.gz
samba-124cd6fb237c887ff9d645dfc053a2ffb178c73b.tar.bz2
samba-124cd6fb237c887ff9d645dfc053a2ffb178c73b.zip
r20409: load the attribute syntax for the attribute
metze (This used to be commit d042aac3f72ab2022479bee48e49a0ab289315f5)
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/schema/schema_init.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/dsdb/schema/schema_init.c b/source4/dsdb/schema/schema_init.c
index 5d28e97271..5b0e2f1465 100644
--- a/source4/dsdb/schema/schema_init.c
+++ b/source4/dsdb/schema/schema_init.c
@@ -287,6 +287,11 @@ WERROR dsdb_attribute_from_ldb(struct ldb_message *msg, TALLOC_CTX *mem_ctx, str
GET_BOOL_LDB(msg, "isDefunct", attr, isDefunct, False);
GET_BOOL_LDB(msg, "systemOnly", attr, systemOnly, False);
+ attr->syntax = dsdb_syntax_for_attribute(attr);
+ if (!attr->syntax) {
+ return WERR_DS_ATT_SCHEMA_REQ_SYNTAX;
+ }
+
return WERR_OK;
}
@@ -545,6 +550,11 @@ WERROR dsdb_attribute_from_drsuapi(struct dsdb_schema *schema,
GET_BOOL_DS(schema, r, "isDefunct", attr, isDefunct, False);
GET_BOOL_DS(schema, r, "systemOnly", attr, systemOnly, False);
+ attr->syntax = dsdb_syntax_for_attribute(attr);
+ if (!attr->syntax) {
+ return WERR_DS_ATT_SCHEMA_REQ_SYNTAX;
+ }
+
return WERR_OK;
}