dsdb: Move ldb_set_default_dns() into rootdse_get_private_data()
authorAndrew Bartlett <abartlet@samba.org>
Mon, 9 Apr 2018 19:54:20 +0000 (07:54 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 12 Apr 2018 03:15:17 +0000 (05:15 +0200)
commit4d37f55cc127cb823821050a333ace8a06f92d2c
treec05345e2983f109e36cef47bc9ca21deeacd9712
parent63956116328c0d1b75ff23e115de0389d95ae137
dsdb: Move ldb_set_default_dns() into rootdse_get_private_data()

This call needs to be done at the very first chance, in this case
during the first call to the lock_read() hook, otherwise the
schema_data module can't find the schema.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13379

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source4/dsdb/samdb/ldb_modules/rootdse.c