1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00
samba-mirror/source4/setup
Andrew Bartlett c56b9b8795 samba_dsdb: Use and maintain compatibleFeatures and requiredFeatures in @SAMBA_DSDB
This will allow us to introduce new database features that are
backward compatible from the point of view of older versions of Samba,
but which will be damaged by modifying the database with such a
version.

For example, if linked attributes are stored in sorted order in 4.7,
and this change, without any values in current_supportedFeatures is
itself included in 4.6, then our sortedLinks are backward compatible
to that release.

That is with 4.6 (including this patch) which doesn't care about
ordering -- but a downgraded 4.7 database used by 4.6 will be broken
when later used with 4.7.  If we add a 'sortedLinks' feature flag in
compatibleFeatures, we can detect that.

This will allow us to determine if the database still contains
unsorted links, as that information allows us to make the code
handling links much more efficient.

We won't add the actual flag until all the code is in place.

Andrew wrote the actual code and Douglas wrote the tests, and they
cross-reviewed.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Piar-programmed-with: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>

selftest: check for database features flags
(cherry picked from commit 8368e06ff6)

BUG 12573: Samba < 4.7 does not know about compatibleFeatures and
requiredFeatures
2017-02-14 00:24:25 +01:00
..
ad-schema
display-specifiers
tests samba_dsdb: Use and maintain compatibleFeatures and requiredFeatures in @SAMBA_DSDB 2017-02-14 00:24:25 +01:00
aggregate_schema.ldif
cn=samba.ldif OpenLDAP provisioning tweaks 2013-09-18 21:39:51 +02:00
DB_CONFIG
dns_update_list samba_dnsupdate: Implement RPC <ZONE> prefix in dns_update_list 2016-06-16 04:40:14 +02:00
fedora-ds-init.ldif
fedorads-dna.ldif
fedorads-index.ldif
fedorads-linked-attributes.ldif
fedorads-pam.ldif
fedorads-partitions.ldif
fedorads-refint-add.ldif
fedorads-refint-delete.ldif
fedorads-samba.ldif
fedorads-sasl.ldif
fedorads.inf
idmap_init.ldif
krb5.conf
memberof.conf
mmr_serverids.conf
mmr_syncrepl.conf
modules.conf
named.conf s4-dns: Remove refernece to BIND 9.7 supporting GSS-TSIG 2012-07-03 08:13:02 +10:00
named.conf.dlz provision: Add support for BIND 9.11.x 2016-10-28 03:42:25 +02:00
named.conf.update
named.txt provision: Rewrite named.txt to be more useful 2013-08-29 13:53:25 +02:00
olc_mmr.conf
olc_seed.ldif
olc_serverid.conf
olc_syncrepl_seed.conf
olc_syncrepl.conf
prefixMap.txt
provision_basedn_modify.ldif
provision_basedn_options.ldif s4-provision: Create a samdb copy for access by dlz_bind9 module 2011-11-29 16:00:36 +11:00
provision_basedn_references.ldif
provision_basedn.ldif
provision_computers_add.ldif s4:provision: set the correct nTSecurityDescriptor on CN=Computers,... (bug #9481) 2012-12-11 05:04:48 +01:00
provision_computers_modify.ldif
provision_configuration_basedn.ldif
provision_configuration_modify.ldif provision: fix nTSecurityDescriptor attributes of CN=*,${CONFIGDN} (bug #9481) 2013-01-27 20:14:21 +11:00
provision_configuration_references.ldif
provision_configuration.ldif provision: fix nTSecurityDescriptor attributes of CN=*,${CONFIGDN} (bug #9481) 2013-01-27 20:14:21 +11:00
provision_dns_accounts_add.ldif s4-provision: Extract dns account creation as separate ldif 2011-09-08 00:35:37 +02:00
provision_dns_add_samba.ldif s4-setup Remove servicePrincipalName: DNS/${DNSDOMAIN} from new installations 2011-11-10 01:11:46 +01:00
provision_dnszones_add.ldif samba-tool domain join subdomain: Rework sambadns.py to allow setup of DomainDNSZone only 2013-10-11 10:27:49 +02:00
provision_dnszones_modify.ldif samba-tool domain join subdomain: Rework sambadns.py to allow setup of DomainDNSZone only 2013-10-11 10:27:49 +02:00
provision_dnszones_partitions.ldif samba-tool domain join subdomain: Rework sambadns.py to allow setup of DomainDNSZone only 2013-10-11 10:27:49 +02:00
provision_group_policy.ldif
provision_init.ldif s4:provision: add pekList and msDS-ExecuteScriptPassword to @KLUDGEACL 2012-11-30 17:17:21 +01:00
provision_partitions.ldif
provision_privilege.ldif
provision_rootdse_add.ldif ad/provision: change http://samba.org to https://www.samba.org 2016-12-09 16:57:31 +01:00
provision_rootdse_modify.ldif
provision_schema_basedn_modify.ldif
provision_schema_basedn.ldif
provision_self_join_config.ldif s4-provision Add initial support for joining as a new subdomain 2011-09-13 15:37:11 +10:00
provision_self_join_modify_config.ldif s4-provision Add initial support for joining as a new subdomain 2011-09-13 15:37:11 +10:00
provision_self_join_modify.ldif s4-provision Perform 'modify' operations as system 2011-09-13 15:37:12 +10:00
provision_self_join.ldif s4-provision Perform 'modify' operations as system 2011-09-13 15:37:12 +10:00
provision_users_add.ldif s4:provision: set the correct nTSecurityDescriptor on CN=Users,... (bug #9481) 2012-12-11 05:20:32 +01:00
provision_users_modify.ldif
provision_users.ldif s4-provision Split addition of users and well known principals 2011-09-13 15:37:12 +10:00
provision_well_known_sec_princ.ldif provision: fix nTSecurityDescriptor attributes of CN=*,${CONFIGDN} (bug #9481) 2013-01-27 20:14:21 +11:00
provision.ldif provision: fix nTSecurityDescriptor of CN={LostAndFound,System},${DOMAINDN} (bug #9481) 2013-01-27 20:14:21 +11:00
provision.reg
provision.zone
refint.conf
schema_samba4.ldif python/schema: fix tests flapping due to oid collision 2017-01-25 20:32:12 +01:00
schema-map-fedora-ds-1.0
schema-map-openldap-2.3
secrets_dns.ldif s4-setup: Add saltPrincipal to secrets_dns.ldif 2015-04-24 13:02:37 +02:00
secrets_init.ldif
secrets_sasl_ldap.ldif
secrets_simple_ldap.ldif
secrets.ldif
share.ldif
slapd.conf OpenLDAP provisioning tweaks 2013-09-18 21:39:51 +02:00
spn_update_list s4-provision: Enable SPNs for DNS 2011-09-12 20:42:12 +10:00
wscript_build build:wafsamba: Install named.conf only once 2015-11-16 11:48:14 +01:00
ypServ30.ldif s4-provision: Provide YP/NIS subtree to allow ADUC to see and set rfc2307 attrs 2012-07-13 06:00:17 +02:00