]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
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>
Thu, 13 Jul 2017 13:03:29 +0000 (15:03 +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>
(cherry picked from commit 9530284383f252efd64bfdf138579964c6500eba)

Autobuild-User(v4-5-test): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(v4-5-test): Thu Jul 13 15:03:29 CEST 2017 on sn-devel-144

selftest/target/Samba3.pm

index 48a8973357fc57e48a89b9562bbbcd1d80d93122..d88f8cb0c88fa357073036bbfc53c485d16e11c1 100755 (executable)
@@ -352,6 +352,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;
        }