When I run the provision script from the console, with the --realm, --domain and --adminpass parameter, I notice some special messages: schema_fsmo_init: no schema dn present: (skip schema loading) naming_fsmo_init: no partitions dn present: (skip loading of naming contexts details) pdc_fsmo_init: no domain dn present: (skip loading of domain details) Are they normal warnings and ignorable?
These are normal, due to us starting from a blank database. Perhaps we can skip these if the rootDSE 'isSyncronised' attribute is not present.
This was indeed a bug, and fixed in -r 24245. We didn't tell ldb to use Samba's DEBUG system until after these messages were output, so the fallback to fprintf() to stderr was used. Thanks!