diff options
author | Kamen Mazdrashki <kamenim@samba.org> | 2011-03-01 02:32:19 +0200 |
---|---|---|
committer | Kamen Mazdrashki <kamenim@samba.org> | 2011-03-01 03:45:16 +0100 |
commit | b1f68b68717bbcddf81ba7776faaef52f424043b (patch) | |
tree | ddba2fa3dd2e70cb987fbacb9b711d692f2d397f /source4/libnet | |
parent | fb7975d590e341a8d301a21e0c4957a376ee6fb0 (diff) | |
download | samba-b1f68b68717bbcddf81ba7776faaef52f424043b.tar.gz samba-b1f68b68717bbcddf81ba7776faaef52f424043b.tar.bz2 samba-b1f68b68717bbcddf81ba7776faaef52f424043b.zip |
s4-libnet_vampire: Ignore some attributes when building working schema cache
Working schema cache will be used to convert replicated Schema objects
again later, i.e. used as reference, so we don't need to resolve all
attribute OIDs for working Schema cache to be usable.
Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Tue Mar 1 03:45:16 CET 2011 on sn-devel-104
Diffstat (limited to 'source4/libnet')
-rw-r--r-- | source4/libnet/libnet_vampire.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/libnet/libnet_vampire.c b/source4/libnet/libnet_vampire.c index 91a11eec67..80b1a61b57 100644 --- a/source4/libnet/libnet_vampire.c +++ b/source4/libnet/libnet_vampire.c @@ -246,6 +246,14 @@ static NTSTATUS libnet_vampire_cb_apply_schema(struct libnet_vampire_cb_state *s int ret, pass_no; bool ok; uint64_t seq_num; + uint32_t ignore_attids[] = { + DRSUAPI_ATTID_auxiliaryClass, + DRSUAPI_ATTID_mayContain, + DRSUAPI_ATTID_mustContain, + DRSUAPI_ATTID_possSuperiors, + DRSUAPI_ATTID_systemPossSuperiors, + DRSUAPI_ATTID_INVALID + }; DEBUG(0,("Analyze and apply schema objects\n")); @@ -349,6 +357,7 @@ static NTSTATUS libnet_vampire_cb_apply_schema(struct libnet_vampire_cb_state *s */ status = dsdb_convert_object_ex(s->ldb, working_schema, pfm_remote, cur, c->gensec_skey, + ignore_attids, tmp_ctx, &object); if (!W_ERROR_IS_OK(status)) { DEBUG(1,("Warning: Failed to convert schema object %s into ldb msg\n", |