summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-08-10 04:28:00 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:57:48 -0500
commit06cf56bc1dd75bc3fd47ec7c100c42a8aa4b23ba (patch)
treeb5f72fb2c4f8fa7addbcad2912db34754aa47183 /source4/torture/rpc
parentbf85647095b8d9666c5c06d11da3676ce675f6f3 (diff)
downloadsamba-06cf56bc1dd75bc3fd47ec7c100c42a8aa4b23ba.tar.gz
samba-06cf56bc1dd75bc3fd47ec7c100c42a8aa4b23ba.tar.bz2
samba-06cf56bc1dd75bc3fd47ec7c100c42a8aa4b23ba.zip
r1685: Add the ability to lookup RPC auth types for the RPC-MGMT torture test.
Andrew Bartlett (This used to be commit 0e4e3647e848605416fe79c742ac84d84dc4357c)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/mgmt.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/source4/torture/rpc/mgmt.c b/source4/torture/rpc/mgmt.c
index a95fe43fb8..91d5ceb540 100644
--- a/source4/torture/rpc/mgmt.c
+++ b/source4/torture/rpc/mgmt.c
@@ -109,9 +109,15 @@ static BOOL test_inq_princ_name(struct dcerpc_pipe *p,
continue;
}
if (W_ERROR_IS_OK(r.out.result)) {
+ const char *name = gensec_get_name_by_authtype(i);
ret = True;
- printf("\tprinciple name for proto %u is '%s'\n",
- i, r.out.princ_name);
+ if (name) {
+ printf("\tprinciple name for proto %u (%s) is '%s'\n",
+ i, name, r.out.princ_name);
+ } else {
+ printf("\tprinciple name for proto %u is '%s'\n",
+ i, r.out.princ_name);
+ }
}
}