rem: assert(msg[0].dn == "cn=Replicator,ou=Groups,sambaDomainName=TESTS,dc=vernstok,dc=nl"); 
add: assert(msg[0].dn == "cn=Replicator,ou=Groups,dc=vernstok,dc=nl"); 
context: function test_s3sam_search(ldb){	println("Looking up by non-mapped attribute");	var msg = ldb.search("(cn=Administrator)");	assert(msg.length == 1);	assert(msg[0].cn == "Administrator");	println("Looking up by mapped attribute");	var msg = ldb.search("(name=Backup Operators)");	assert(msg.length == 1);	assert(msg[0].name == "Backup Operators");	println("Looking up by old name of renamed attribute");	var msg = ldb.search("(displayName=Backup Operators)");	assert(msg.length == 0);	println("Looking up mapped entry containing SID");	var msg = ldb.search("(cn=Replicator)");	assert(msg.length == 1);	println(msg[0].dn);	assert(msg[0].dn == "cn=Replicator,ou=Groups,sambaDomainName=TESTS,dc=vernstok,dc=nl");	assert(msg[0].objectSid == "S-1-5-21-4231626423-2410014848-2360679739-552");	println("Checking mapping of objectClass");	var oc = msg[0].objectClass;	assert(oc != undefined);	for (var i in oc) {		assert(oc[i] == "posixGroup" || oc[i] == "group");	}	println("Looking up by objectClass");	var msg = ldb.search("(|(objectClass=user)(cn=Administrator))");	assert(msg != undefined);	assert(msg.length == 2);	for (var i = 0; i < msg.length; i++) {		assert((msg[i].dn == "unixName=Administrator,ou=Users,sambaDomainName=TESTS,dc=vernstok,dc=nl") ||		       (msg[i].dn == "unixName=nobody,ou=Users,sambaDomainName=TESTS,dc=vernstok,dc=nl"));	}}
meta: 1392	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1392/adae413042e15e7228bcc25321913b38ae61358a/samba3sam.js/clean/testprogs/ejs/samba3sam.js