s4-dsdb: call dsdb_make_schema_global() from ldb_wrap
authorAndrew Tridgell <tridge@samba.org>
Tue, 27 Oct 2009 09:30:53 +0000 (20:30 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 27 Oct 2009 09:30:53 +0000 (20:30 +1100)
commit798b05a9740f43b2b6f9a5091878d85e3c88409d
treef09b33b4eb37d7eea40a97c193657721286f7ab1
parent9a2112ec6604bb9d2c9cf9a99ee42e3e19d209db
s4-dsdb: call dsdb_make_schema_global() from ldb_wrap

Calling it from samdb_connect() can cause a stale schema to be put
into the global schema.

Thanks to Andrew Bartlett for spotting this.
source4/dsdb/samdb/samdb.c
source4/lib/ldb_wrap.c