summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2007-03-02 23:24:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:49:07 -0500
commitfcaeedeff3c7d65f65da19440eb7b1ac01481167 (patch)
treea5dc09c95ad0c389872aa3edd4ee32b4069b6d47 /source4/torture/rpc
parent9ca1a3c1861c69eff483441bf6147d58c2b79fab (diff)
downloadsamba-fcaeedeff3c7d65f65da19440eb7b1ac01481167.tar.gz
samba-fcaeedeff3c7d65f65da19440eb7b1ac01481167.tar.bz2
samba-fcaeedeff3c7d65f65da19440eb7b1ac01481167.zip
r21668: Add SMB_QFS_POSIX_WHOAMI to trans2.h so it's easy to find. Add
convenience API to create an anonymous credential. Don't clobber cmdline_credentials in the UNIX-WHOAMI test. (This used to be commit 73cea4e0c66f57057ed12b07bbb94b4e783ba6bf)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/srvsvc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/torture/rpc/srvsvc.c b/source4/torture/rpc/srvsvc.c
index f024d1d2ab..274f266ea0 100644
--- a/source4/torture/rpc/srvsvc.c
+++ b/source4/torture/rpc/srvsvc.c
@@ -1125,9 +1125,7 @@ BOOL torture_rpc_srvsvc(struct torture_context *torture)
return False;
}
- anon_credentials = cli_credentials_init(mem_ctx);
- cli_credentials_set_conf(anon_credentials);
- cli_credentials_set_anonymous(anon_credentials);
+ anon_credentials = cli_credentials_init_anon(mem_ctx);
status = dcerpc_pipe_connect(mem_ctx,
&p, binding, &dcerpc_table_srvsvc,