rem: rdn_list = split(".", subobj.REALM); 
add: rdn_list = split(".", subobj.DNSDOMAIN); subobj.DOMAINDN     = "DC=" + join(",DC=", rdn_list); subobj.DOMAINDN_LDB = "users.ldb"; subobj.ROOTDN       = subobj.DOMAINDN;  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);  
context: function upgrade_provision(samba3){	var subobj = new Object();	var nss = nss_init();	var lp = loadparm_init();	var rdn_list;	var domainname = samba3.configuration.get("workgroup");		if (domainname == undefined) {		domainname = samba3.secrets.domains[0].name;		println("No domain specified in smb.conf file, assuming '" + domainname + "'");	}		var domsec = samba3.find_domainsecrets(domainname);	var hostsec = samba3.find_domainsecrets(hostname());	var realm = samba3.configuration.get("realm");	if (realm == undefined) {		realm = domainname;		println("No realm specified in smb.conf file, assuming '" + realm + "'");	}	random_init(local);	subobj.REALM        = realm;	subobj.DOMAIN       = domainname;	subobj.HOSTNAME     = hostname();	assert(subobj.REALM);	assert(subobj.DOMAIN);	assert(subobj.HOSTNAME);	subobj.HOSTIP       = hostip();	if (domsec != undefined) {		subobj.DOMAINGUID   = domsec.guid;		subobj.DOMAINSID    = domsec.sid;	} else {		println("Can't find domain secrets for '" + domainname + "'; using random SID and GUID");		subobj.DOMAINGUID = randguid();		subobj.DOMAINSID = randsid();	}		if (hostsec) {		subobj.HOSTGUID     = hostsec.guid;	} else {		subobj.HOSTGUID = randguid();	}	subobj.INVOCATIONID = randguid();	subobj.KRBTGTPASS   = randpass(12);	subobj.MACHINEPASS  = randpass(12);	subobj.ADMINPASS    = randpass(12);	subobj.DEFAULTSITE  = "Default-First-Site-Name";	subobj.NEWGUID      = randguid;	subobj.NTTIME       = nttime;	subobj.LDAPTIME     = ldaptime;	subobj.DATESTRING   = datestring;	subobj.USN          = nextusn;	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");	subobj.USERS        = findnss(nss.getgrnam, "users", "guest", "other");	subobj.DNSDOMAIN    = strlower(subobj.REALM);	subobj.DNSNAME      = sprintf("%s.%s", 				      strlower(subobj.HOSTNAME), 				      subobj.DNSDOMAIN);	subobj.BASEDN       = "DC=" + join(",DC=", split(".", subobj.REALM));	rdn_list = split(".", subobj.REALM);	return subobj;}
meta: 1914	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1914/99fb785ea1dcf8ccc7bcbceed350178884e824b1/upgrade.js/buggy/source4/scripting/libjs/upgrade.js