selftest:Samba3: call "net primarytrust dumpinfo" setup_nt4_member() after the join
authorStefan Metzmacher <metze@samba.org>
Thu, 22 Jun 2017 13:30:56 +0000 (15:30 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 27 Jun 2017 14:57:47 +0000 (16:57 +0200)
Here we check that we get 'REDACTED SECRET VALUES' printed, in order
to avoid regression on the non '-f' behavior.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12782

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
selftest/target/Samba3.pm

index 270ad2726a93ed6204404d8e0cd655d4d33dc48f..bea5db2b801f5b53fcd3f1ce08ea264a41419b9a 100755 (executable)
@@ -355,6 +355,16 @@ sub setup_nt4_member($$$)
            return undef;
        }
 
+       my $cmd = "";
+       $cmd .= "SOCKET_WRAPPER_DEFAULT_IFACE=\"$ret->{SOCKET_WRAPPER_DEFAULT_IFACE}\" ";
+       $cmd .= "SELFTEST_WINBINDD_SOCKET_DIR=\"$ret->{SELFTEST_WINBINDD_SOCKET_DIR}\" ";
+       $cmd .= "$net $ret->{CONFIGURATION} primarytrust dumpinfo | grep -q 'REDACTED SECRET VALUES'";
+
+       if (system($cmd) != 0) {
+           warn("check failed\n$cmd");
+           return undef;
+       }
+
        if (not $self->check_or_start($ret, "yes", "yes", "yes")) {
               return undef;
        }