rem: if (!ok) { 
add: if (ok.error != 0) { 
context: function setup_name_mapping(info, ldb, sid, unixname){	var attrs = new Array("dn");	var res = ldb.search(sprintf("objectSid=%s", sid), 			     info.subobj.DOMAINDN, ldb.SCOPE_SUBTREE, attrs);	if (res.length != 1) {		info.message("Failed to find record for objectSid %s\n", sid);		return false;	}	var mod = sprintf("dn: %schangetype: modifyreplace: unixNameunixName: %s",			  res[0].dn, unixname);	var ok = ldb.modify(mod);	if (!ok) {		info.message("name mapping for %s failed - %s\n",			     sid, ldb.errstring());		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