s4-libnet: print the domain name on domain open failure
[kamenim/samba.git] / source4 / torture / libnet / libnet_domain.c
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;
        }