s4-libnet: print the domain name on domain open failure
authorAndrew Tridgell <tridge@samba.org>
Tue, 14 Sep 2010 23:53:49 +0000 (09:53 +1000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 15 Sep 2010 05:39:36 +0000 (15:39 +1000)
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/torture/libnet/domain.c
source4/torture/libnet/libnet_domain.c

index c523eeeab4b1489760a13a802df3daa5f401cb17..c73682f972014c01db9977c8c2a9f6a2d40134f1 100644 (file)
@@ -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;
        }
 
index 8cce1721925c3a89ec04ffe31d8fc991b4b4b607..142b6e9f617ee77ae1fa3a617cd3181aa9cf0771 100644 (file)
@@ -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;
        }