rem: setup_ldb("provision_init.ldif", info, paths.samdb); 
add: setup_ldb("provision_init.ldif", info, paths.samdb, NULL, false); 
context: function provision(subobj, message, blank, paths, session_info, credentials){	var data = "";	var lp = loadparm_init();	var sys = sys_init();	var info = new Object();	/*	  some options need to be upper/lower case	*/	subobj.REALM       = strupper(subobj.REALM);	subobj.HOSTNAME    = strlower(subobj.HOSTNAME);	subobj.DOMAIN      = strupper(subobj.DOMAIN);	assert(valid_netbios_name(subobj.DOMAIN));	subobj.NETBIOSNAME = strupper(subobj.HOSTNAME);	assert(valid_netbios_name(subobj.NETBIOSNAME));	var rdns = split(",", subobj.BASEDN);	subobj.RDN_DC = substr(rdns[0], strlen("DC="));	info.subobj = subobj;	info.message = message;	info.credentials = credentials;	info.session_info = session_info;	/* only install a new smb.conf if there isn't one there already */	var st = sys.stat(paths.smbconf);	if (st == undefined) {		message("Setting up smb.conf\n");		setup_file("provision.smb.conf", info.message, paths.smbconf, subobj);		lp.reload();	}	/* only install a new shares config db if there is none */	st = sys.stat(paths.shareconf);	if (st == undefined) {		message("Setting up sconf.ldb\n");		setup_ldb("share.ldif", info, paths.shareconf);	}	message("Setting up secrets.ldb\n");	setup_ldb("secrets.ldif", info, paths.secrets);	message("Setting up keytabs\n");	var keytab_ok = credentials_update_all_keytabs();	assert(keytab_ok);	message("Setting up hklm.ldb\n");	setup_ldb("hklm.ldif", info, paths.hklm);	message("Setting up sam.ldb attributes\n");	setup_ldb("provision_init.ldif", info, paths.samdb);	message("Erasing data from partitions\n");	ldb_erase_partitions(info, paths.samdb);		message("Adding baseDN: " + subobj.BASEDN + "\n");	setup_ldb("provision_basedn.ldif", info, paths.samdb, NULL, false, true);	message("Modifying baseDN: " + subobj.BASEDN + "\n");	setup_ldb_modify("provision_basedn_modify.ldif", info, paths.samdb)	message("Setting up sam.ldb schema\n");	setup_ldb("schema.ldif", info, paths.samdb, NULL, false);	message("Setting up display specifiers\n");	setup_ldb("display_specifiers.ldif", info, paths.samdb, NULL, false);	message("Setting up sam.ldb templates\n");	setup_ldb("provision_templates.ldif", info, paths.samdb, NULL, false);	message("Setting up sam.ldb data\n");	setup_ldb("provision.ldif", info, paths.samdb, NULL, false);	if (blank != false) {		return true;	}	message("Setting up sam.ldb users and groups\n");	setup_ldb("provision_users.ldif", info, paths.samdb, data, false);	if (setup_name_mappings(info, subobj, session_info, credentials) == false) {		return false;	}	return true;}
meta: 1914	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1914/7b99b2048ef1cd5603d93ac94543838a049d0adc/provision.js/buggy/source4/scripting/libjs/provision.js