rem: message("Setting up " + paths.samdb + " templates\n"); setup_add_ldif("provision_templates.ldif", info, samdb, false);  
context: function provision_become_dc(subobj, message, erase, paths, session_info){	var lp = loadparm_init();	var sys = sys_init();	var info = new Object();	var ok = provision_fix_subobj(subobj, paths);	assert(ok);	info.subobj = subobj;	info.message = message;	info.session_info = session_info;	/* Also wipes the database */	message("Setting up " + paths.samdb + " partitions\n");	setup_ldb("provision_partitions.ldif", info, paths.samdb);	var samdb = open_ldb(info, paths.samdb, false);	message("Setting up " + paths.samdb + " attributes\n");	setup_add_ldif("provision_init.ldif", info, samdb, false);	message("Setting up " + paths.samdb + " rootDSE\n");	setup_add_ldif("provision_rootdse_add.ldif", info, samdb, false);	if (erase) {		message("Erasing data from partitions\n");		ldb_erase_partitions(info, samdb, undefined);	}	message("Setting up " + paths.samdb + " indexes\n");	setup_add_ldif("provision_index.ldif", info, samdb, false);	message("Setting up " + paths.samdb + " templates\n");	setup_add_ldif("provision_templates.ldif", info, samdb, false);	ok = samdb.transaction_commit();	assert(ok);	message("Setting up " + paths.secrets + "\n");	setup_ldb("secrets_init.ldif", info, paths.secrets);	setup_ldb("secrets.ldif", info, paths.secrets, false);	setup_ldb("secrets_dc.ldif", info, paths.secrets, false);	return true;}
meta: 5771	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5771/3f2ca10d2d86f0cd64822f9e5f95633f41263237/provision.js/clean/source4/scripting/libjs/provision.js