repl_meta_data: Correctly use msDS-IntId for custom schema, not the prefixMap value
commit21bf6af2236bd2c12c979dad971600350f327989
authorAndrew Bartlett <abartlet@samba.org>
Tue, 22 Dec 2015 06:33:39 +0000 (22 19:33 +1300)
committerKarolin Seeger <kseeger@samba.org>
Tue, 15 Mar 2016 19:29:35 +0000 (15 20:29 +0100)
treeb0b9628b6d77de70a46b52d35d24a93b58ae7132
parentd3bffda2f2b03f2064bbea6c9de09aa3f2fbfd55
repl_meta_data: Correctly use msDS-IntId for custom schema, not the prefixMap value

We must, when dealing with custom schema, respect the msDC-IntId value recorded
in the schema.  If we do not, then we will create multiple replPropertyMetaData
records for the one attribute.  This may cause confusion during replication.

This fixes the issue by always calling dsdb_attribute_get_attid() to obtain
the correct local (32 bit integer) attribute ID

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11443
(cherry picked from commit ecf0dd49e07e2c7fad5adf0a82abbc3e301a4e5a)
source4/dsdb/samdb/ldb_modules/repl_meta_data.c
source4/dsdb/tests/python/ldap_schema.py