s4/test: Call test_user_cleanup with original RDN for the user
authorKamen Mazdrashki <kamenim@samba.org>
Wed, 9 Jun 2010 23:02:06 +0000 (02:02 +0300)
committerKamen Mazdrashki <kamenim@samba.org>
Thu, 10 Jun 2010 22:20:09 +0000 (01:20 +0300)
'name' var is changed during the test execution and should
contain samAccountName for the user, while test_user_cleanup()
expects account RDN to be passed

source4/torture/libnet/userman.c

index 0faca57e8ca477695c8105e24a7d4a47091a4407..42664a3ae4df89bc7bd7824c47778e2429170a57 100644 (file)
@@ -459,7 +459,7 @@ bool torture_usermod(struct torture_context *torture)
        }
 
 cleanup:
-       if (!test_user_cleanup(torture, b, mem_ctx, &h, name)) {
+       if (!test_user_cleanup(torture, b, mem_ctx, &h, TEST_USERNAME)) {
                ret = false;
                goto done;
        }