s4-dsdb_schema: Seize using global_schema when referencing new schema for an LDB
authorKamen Mazdrashki <kamenim@samba.org>
Thu, 9 Dec 2010 02:31:14 +0000 (04:31 +0200)
committerKamen Mazdrashki <kamenim@samba.org>
Tue, 14 Dec 2010 23:51:18 +0000 (00:51 +0100)
commit79e1a71e5673de5d2e5bf78c7c2adbcd59bbc004
treece6d0cb24bb79cac842bac13b0c10a1c40a3c46d
parent4bcedda7d8c446bb3864312881aa63b892b55b7e
s4-dsdb_schema: Seize using global_schema when referencing new schema for an LDB

Without this change, when a schema is set to ldb, the
effect is that dsdb_get_schema() returns global_schema
preferably.

Thus we end up with two schemas in effect:
- global one, which is the old one and it is still used everywhere
- new one, which is just cached in ldb, but can't be used, as
  there is no way to access it
source4/dsdb/schema/schema_set.c