selftest: Do *NOT* flush the complete gencache!
authorAndreas Schneider <asn@samba.org>
Wed, 28 Jun 2017 12:49:45 +0000 (14:49 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 28 Jun 2017 20:18:16 +0000 (22:18 +0200)
This removes *IMPORTANT* entries from the gencache winbindd creates on
startup.

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

Pair-Programmed-With: Ralph Boehme <slow@samba.org>

Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Ralph Boehme <slow@samba.org>
selftest/target/Samba3.pm

index bea5db2b801f5b53fcd3f1ce08ea264a41419b9a..68b98287f220b2da7cd570bb3875560bcf36720e 100755 (executable)
@@ -2275,7 +2275,7 @@ sub wait_for_start($$$$$)
            }
            my $count = 0;
            do {
-               system(Samba::bindir_path($self, "net") . " $envvars->{CONFIGURATION} cache flush");
+               system(Samba::bindir_path($self, "net") . " $envvars->{CONFIGURATION} cache del IDMAP/SID2XID/S-1-5-32-545");
                $ret = system("SELFTEST_WINBINDD_SOCKET_DIR=" . $envvars->{SELFTEST_WINBINDD_SOCKET_DIR} . " " . Samba::bindir_path($self, "wbinfo") . " --sid-to-gid=S-1-5-32-545");
                if ($ret != 0) {
                    sleep(2);