diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-09-15 09:53:49 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-09-15 15:39:36 +1000 |
commit | 0009d1771a757c1df152693840991ecc57564f34 (patch) | |
tree | dac668b79e46b061e7995f74b82a4eb183882fb4 /source4/torture/libnet | |
parent | c18e9566ea62fb1a3cb46ca6ce703e32e24cf550 (diff) | |
download | samba-0009d1771a757c1df152693840991ecc57564f34.tar.gz samba-0009d1771a757c1df152693840991ecc57564f34.tar.bz2 samba-0009d1771a757c1df152693840991ecc57564f34.zip |
s4-libnet: print the domain name on domain open failure
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/torture/libnet')
-rw-r--r-- | source4/torture/libnet/domain.c | 3 | ||||
-rw-r--r-- | source4/torture/libnet/libnet_domain.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/source4/torture/libnet/domain.c b/source4/torture/libnet/domain.c index c523eeeab4..c73682f972 100644 --- a/source4/torture/libnet/domain.c +++ b/source4/torture/libnet/domain.c @@ -39,7 +39,8 @@ static bool test_domainopen(struct torture_context *tctx, status = libnet_DomainOpen(net_ctx, mem_ctx, &io); if (!NT_STATUS_IS_OK(status)) { - torture_comment(tctx, "Composite domain open failed - %s\n", nt_errstr(status)); + torture_comment(tctx, "Composite domain open failed for domain '%s' - %s\n", + domname->string, nt_errstr(status)); return false; } diff --git a/source4/torture/libnet/libnet_domain.c b/source4/torture/libnet/libnet_domain.c index 8cce172192..142b6e9f61 100644 --- a/source4/torture/libnet/libnet_domain.c +++ b/source4/torture/libnet/libnet_domain.c @@ -271,7 +271,8 @@ bool torture_domain_open_samr(struct torture_context *torture) status = libnet_DomainOpen(ctx, mem_ctx, &io); if (!NT_STATUS_IS_OK(status)) { - torture_comment(torture, "Composite domain open failed - %s\n", nt_errstr(status)); + torture_comment(torture, "Composite domain open failed for domain '%s' - %s\n", + domain_name, nt_errstr(status)); ret = false; goto done; } |