svn commit: samba r25760 - in branches/SAMBA_4_0/testprogs/ejs: .

Stefan (metze) Metzmacher metze at samba.org
Wed Oct 31 07:55:25 GMT 2007


> +	ok = ldb.rename("cn=ldaptestuser3,cn=users," + base_dn, "cn=ldaptestUSER3,cn=users," + base_dn);
> +	if (ok.error != 0) {
> +		println("Could not rename cn=ldaptestuser3,cn=users," + base_dn + " into cn=ldaptestUSER3,cn=users," + base_dn + ": " + ok.errstr);
> +		assert(ok.error == 0);
> +	}
> +
> +	println("Testing ldb.search for (&(cn=ldaptestuser3)(objectClass=user))");
> +	var res = ldb.search("(&(cn=ldaptestuser3)(objectClass=user))");
> +	if (res.error != 0 || res.msgs.length != 1) {
> +		println("Could not find (&(cn=ldaptestuser3)(objectClass=user))");
> +		assert(res.error == 0);
> +		assert(res.msgs.length == 1);
> +	}
> +
> +	assert(res.msgs[0].dn == ("CN=ldaptestUSER3,CN=Users," + base_dn));
> +	assert(res.msgs[0].cn == "ldaptestUSER3");
> +	assert(res.msgs[0].name == "ldaptestUSER3");
> +
Hi Andrew,

can you also test the noop case where the dn doesn't change and monitor
the uSNChanged it something was changed.

metze
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : http://lists.samba.org/archive/samba-technical/attachments/20071031/b2353c01/signature.bin


More information about the samba-technical mailing list