diff options
author | Kamen Mazdrashki <kamenim@samba.org> | 2010-05-26 13:32:13 +0300 |
---|---|---|
committer | Kamen Mazdrashki <kamenim@samba.org> | 2010-05-26 14:36:14 +0300 |
commit | de60cbb6e75fb1f6fe42fd0e86204d304911d30c (patch) | |
tree | 82db2732fddf767779e05db1ec9bd446677194cd /source4 | |
parent | 5444272f89785b9c7a63b197b89bf8fc40c39284 (diff) | |
download | samba-de60cbb6e75fb1f6fe42fd0e86204d304911d30c.tar.gz samba-de60cbb6e75fb1f6fe42fd0e86204d304911d30c.tar.bz2 samba-de60cbb6e75fb1f6fe42fd0e86204d304911d30c.zip |
s4/test: remove unused code
There is no need anymore to modify samAccountName
of the testing user to original value as test_cleanup()
will spot the right samAccountName to delete
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/libnet/libnet_user.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/source4/torture/libnet/libnet_user.c b/source4/torture/libnet/libnet_user.c index 677971b43a..879b250c07 100644 --- a/source4/torture/libnet/libnet_user.c +++ b/source4/torture/libnet/libnet_user.c @@ -643,24 +643,6 @@ bool torture_modifyuser(struct torture_context *torture) default: break; } - - if (fld == acct_name) { - /* restore original testing username - it's useful when test fails - because it prevents from problems with recreating account */ - ZERO_STRUCT(req); - req.in.domain_name = lp_workgroup(torture->lp_ctx); - req.in.user_name = name; - req.in.account_name = TEST_USERNAME; - - status = libnet_ModifyUser(ctx, torture, &req); - if (!NT_STATUS_IS_OK(status)) { - torture_comment(torture, "libnet_ModifyUser call failed: %s\n", nt_errstr(status)); - ret = false; - goto done; - } - - name = talloc_strdup(torture, TEST_USERNAME); - } } cleanup: |