From fb7975d590e341a8d301a21e0c4957a376ee6fb0 Mon Sep 17 00:00:00 2001 From: Kamen Mazdrashki Date: Tue, 1 Mar 2011 02:30:12 +0200 Subject: s4-repl/working_schema: Ignore some attributes when bulding working schema cache We don't need all object attributes resolved and converted for a working schema to be functional. --- source4/dsdb/repl/replicated_objects.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source4') diff --git a/source4/dsdb/repl/replicated_objects.c b/source4/dsdb/repl/replicated_objects.c index 9f9be3c778..d11de92b1b 100644 --- a/source4/dsdb/repl/replicated_objects.c +++ b/source4/dsdb/repl/replicated_objects.c @@ -61,6 +61,14 @@ WERROR dsdb_repl_make_working_schema(struct ldb_context *ldb, struct dsdb_schema *working_schema; const struct drsuapi_DsReplicaObjectListItemEx *cur; int ret, pass_no; + uint32_t ignore_attids[] = { + DRSUAPI_ATTID_auxiliaryClass, + DRSUAPI_ATTID_mayContain, + DRSUAPI_ATTID_mustContain, + DRSUAPI_ATTID_possSuperiors, + DRSUAPI_ATTID_systemPossSuperiors, + DRSUAPI_ATTID_INVALID + }; /* make a copy of the iniatial_scheam so we don't mess with it */ working_schema = dsdb_schema_copy_shallow(mem_ctx, ldb, initial_schema); @@ -111,6 +119,7 @@ WERROR dsdb_repl_make_working_schema(struct ldb_context *ldb, */ werr = dsdb_convert_object_ex(ldb, working_schema, pfm_remote, cur, gensec_skey, + ignore_attids, tmp_ctx, &object); if (!W_ERROR_IS_OK(werr)) { DEBUG(1,("Warning: Failed to convert schema object %s into ldb msg\n", -- cgit