rem: if (res.length != 1) { 
add: if (res.error != 0 || res.msgs.length != 1) { 
context: function install_ok(session_info, credentials){	var lp = loadparm_init();	var ldb = ldb_init();	ldb.session_info = session_info;	ldb.credentials = credentials;	if (lp.get("realm") == "") {		return false;	}	var ok = ldb.connect(lp.get("sam database"));	if (!ok) {		return false;	}	var res = ldb.search("(cn=Administrator)");	if (res.length != 1) {		return false;	}	return true;}
meta: 1392	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1392/7ca399c0755e186508a4ed9796cbbbe6f50181e9/provision.js/buggy/source4/scripting/libjs/provision.js