s4/test: make test_cleanup() in libnet_user library more robust
authorKamen Mazdrashki <kamenim@samba.org>
Wed, 26 May 2010 10:27:07 +0000 (13:27 +0300)
committerKamen Mazdrashki <kamenim@samba.org>
Wed, 26 May 2010 11:36:13 +0000 (14:36 +0300)
commit5444272f89785b9c7a63b197b89bf8fc40c39284
tree30a55b7eaa791d29544162495b66ff35073e6521
parentbbdb8384220f3fa51ded65d89fdab0496ad3da25
s4/test: make test_cleanup() in libnet_user library more robust

test_cleanup() is called always with RDN name of the user to be deleted.
When modify-user test fails however, we end up with a user
with RDN = libnetusertest and samAccountName = random_name.
This way we can not delete the user and the error message is
quite misleading (I've spent a *lot* of time trying to figure out
if the database is corrupted because of this error).
source4/torture/libnet/libnet_user.c