selftest: set tls crlfile if it exist
authorStefan Metzmacher <metze@samba.org>
Sat, 9 Jan 2016 20:21:25 +0000 (21:21 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 17 Mar 2016 16:17:16 +0000 (17:17 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
selftest/target/Samba4.pm

index 6fb2c7a958589e7d46b4f440c9daddc7435d1f95..7ad3b6daa39156fd9b56d50f1b86331ef37ce4e1 100755 (executable)
@@ -516,6 +516,8 @@ sub provision_raw_step1($$)
        }
 
        Samba::prepare_keyblobs($ctx);
+       my $crlfile = "$ctx->{tlsdir}/crl.pem";
+       $crlfile = "" unless -e ${crlfile};
 
        print CONFFILE "
 [global]
@@ -535,6 +537,7 @@ sub provision_raw_step1($$)
        winbind separator = /
        interfaces = $ctx->{interfaces}
        tls dh params file = $ctx->{tlsdir}/dhparms.pem
+       tls crlfile = ${crlfile}
        panic action = $RealBin/gdb_backtrace \%d
        wins support = yes
        server role = $ctx->{server_role}