rem: if (res.length != 1 || res[0][attribute] == undefined) { 
add: if (res.error != 0 || res.msgs.length != 1 || res.msgs[0][attribute] == undefined) { 
context: function searchone(ldb, basedn, expression, attribute){	var attrs = new Array(attribute);	res = ldb.search(expression, basedn, ldb.SCOPE_SUBTREE, attrs);	if (res.length != 1 ||	    res[0][attribute] == undefined) {		return undefined;	}	return res[0][attribute];}
meta: 1392	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1392/7ca399c0755e186508a4ed9796cbbbe6f50181e9/provision.js/buggy/source4/scripting/libjs/provision.js