rem: subobj.DOMAINDN_MOD = "objectguid"; subobj.CONFIGDN_MOD = "objectguid"; subobj.SCHEMADN_MOD = "objectguid"; 
add: subobj.DOMAINDN_MOD = "pdc_fsmo,password_hash"; subobj.CONFIGDN_MOD = "naming_fsmo"; subobj.SCHEMADN_MOD = "schema_fsmo"; subobj.DOMAINDN_MOD2 = ",objectguid"; subobj.CONFIGDN_MOD2 = ",objectguid"; subobj.SCHEMADN_MOD2 = ",objectguid"; 
context: function provision_guess(){	var subobj = new Object();	var nss = nss_init();	var lp = loadparm_init();	var rdn_list;	random_init(local);	subobj.REALM        = strupper(lp.get("realm"));	subobj.DOMAIN       = lp.get("workgroup");	subobj.HOSTNAME     = hostname();	assert(subobj.REALM);	assert(subobj.DOMAIN);	assert(subobj.HOSTNAME);		subobj.VERSION      = version();	subobj.HOSTIP       = hostip();	subobj.DOMAINSID    = randsid();	subobj.INVOCATIONID = randguid();	subobj.POLICYGUID   = randguid();	subobj.KRBTGTPASS   = randpass(12);	subobj.MACHINEPASS  = randpass(12);	subobj.ADMINPASS    = randpass(12);	subobj.LDAPMANAGERPASS     = randpass(12);	subobj.DEFAULTSITE  = "Default-First-Site-Name";	subobj.NEWGUID      = randguid;	subobj.NTTIME       = nttime;	subobj.LDAPTIME     = ldaptime;	subobj.DATESTRING   = datestring;	subobj.ROOT         = findnss(nss.getpwnam, "root");	subobj.NOBODY       = findnss(nss.getpwnam, "nobody");	subobj.NOGROUP      = findnss(nss.getgrnam, "nogroup", "nobody");	subobj.WHEEL        = findnss(nss.getgrnam, "wheel", "root", "staff", "adm");	subobj.BACKUP       = findnss(nss.getgrnam, "backup", "wheel", "root", "staff");	subobj.USERS        = findnss(nss.getgrnam, "users", "guest", "other", "unknown", "usr");	//Add modules to the list to activate them by default	//beware often order is important	//	// Some Known ordering constraints:	// - rootdse must be first, as it makes redirects from "" -> cn=rootdse	// - samldb must be before password_hash, because password_hash checks	//   that the objectclass is of type person (filled in by samldb)	// - partition must be last	// - each partition has its own module list then	modules_list        = new Array("rootdse",					"kludge_acl",					"paged_results",					"server_sort",					"extended_dn",					"asq",					"samldb",					"password_hash",					"operational",					"objectclass",					"rdn_name",					"show_deleted",					"partition");	subobj.MODULES_LIST = join(",", modules_list);	subobj.DOMAINDN_MOD = "objectguid";	subobj.CONFIGDN_MOD = "objectguid";	subobj.SCHEMADN_MOD = "objectguid";	subobj.EXTENSIBLEOBJECT = "# no objectClass: extensibleObject for local ldb";	subobj.ACI		= "# no aci for local ldb";	return subobj;}
meta: 5771	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5771/e9d19477e43b65f91bd152f5249b684dbefa5cc6/provision.js/buggy/source4/scripting/libjs/provision.js