summaryrefslogtreecommitdiff
path: root/selftest
diff options
context:
space:
mode:
Diffstat (limited to 'selftest')
-rw-r--r--selftest/target/Samba3.pm13
1 files changed, 13 insertions, 0 deletions
diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm
index c3f696a99d..cc7713d18e 100644
--- a/selftest/target/Samba3.pm
+++ b/selftest/target/Samba3.pm
@@ -412,6 +412,9 @@ sub provision($$$$$$)
my $lockdir="$prefix_abs/lockdir";
push(@dirs,$lockdir);
+ my $eventlogdir="$prefix_abs/lockdir/eventlog";
+ push(@dirs,$eventlogdir);
+
my $logdir="$prefix_abs/logs";
push(@dirs,$logdir);
@@ -438,6 +441,8 @@ sub provision($$$$$$)
my $mod_printer_pl = "$ENV{PERL} $RealBin/../source3/script/tests/printing/modprinter.pl";
+ my @eventlog_list = ("dns server", "application");
+
open(CONF, ">$conffile") or die("Unable to open $conffile");
print CONF "
[global]
@@ -474,6 +479,8 @@ sub provision($$$$$$)
addprinter command = $mod_printer_pl -a -s $conffile --
deleteprinter command = $mod_printer_pl -d -s $conffile --
+ eventlog list = application \"dns server\"
+
kernel oplocks = no
kernel change notify = no
@@ -557,6 +564,12 @@ $unix_name-group:x:$unix_gids[0]:
";
close(GROUP);
+ foreach my $evlog (@eventlog_list) {
+ my $evlogtdb = "$eventlogdir/$evlog.tdb";
+ open(EVENTLOG, ">$evlogtdb") or die("Unable to open $evlogtdb");
+ close(EVENTLOG);
+ }
+
$ENV{NSS_WRAPPER_PASSWD} = $nss_wrapper_passwd;
$ENV{NSS_WRAPPER_GROUP} = $nss_wrapper_group;