selftest: Ensure winbindd is talking to the DC (itself) at startup
authorAndrew Bartlett <abartlet@samba.org>
Sun, 19 Aug 2018 22:14:16 +0000 (10:14 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 25 Aug 2018 07:00:16 +0000 (09:00 +0200)
This might reduce issues with the first winbind-using test failing

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
selftest/target/Samba4.pm

index 4584b5fe8f2a976841fd9e5dd9e5277fc5687ad3..00dfd28e9ddfe28373957d1480177e720cce716b 100755 (executable)
@@ -259,7 +259,7 @@ sub wait_for_start($$)
                my $cmd = "NSS_WRAPPER_PASSWD=$testenv_vars->{NSS_WRAPPER_PASSWD} ";
                $cmd .= "NSS_WRAPPER_GROUP=$testenv_vars->{NSS_WRAPPER_GROUP} ";
                $cmd .= "SELFTEST_WINBINDD_SOCKET_DIR=$testenv_vars->{SELFTEST_WINBINDD_SOCKET_DIR} ";
                my $cmd = "NSS_WRAPPER_PASSWD=$testenv_vars->{NSS_WRAPPER_PASSWD} ";
                $cmd .= "NSS_WRAPPER_GROUP=$testenv_vars->{NSS_WRAPPER_GROUP} ";
                $cmd .= "SELFTEST_WINBINDD_SOCKET_DIR=$testenv_vars->{SELFTEST_WINBINDD_SOCKET_DIR} ";
-               $cmd .= "$wbinfo -p";
+               $cmd .= "$wbinfo -P";
                $ret = system($cmd);
 
                if ($ret != 0) {
                $ret = system($cmd);
 
                if ($ret != 0) {