diff options
Diffstat (limited to 'source4/selftest/env')
-rw-r--r-- | source4/selftest/env/Samba3.pm | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/source4/selftest/env/Samba3.pm b/source4/selftest/env/Samba3.pm index 8e06238023..1e3b155a58 100644 --- a/source4/selftest/env/Samba3.pm +++ b/source4/selftest/env/Samba3.pm @@ -96,7 +96,7 @@ sub setup_dc($$) { my ($self, $path) = @_; - my $vars = $self->provision($path); + my $vars = $self->provision($path, "dc"); $self->check_or_start($vars, ($ENV{NMBD_MAXTIME} or 2700), ($ENV{SMBD_MAXTIME} or 2700)); @@ -205,9 +205,9 @@ sub create_clientconf($$$) close(CONF); } -sub provision($$) +sub provision($$$) { - my ($self, $prefix) = @_; + my ($self, $prefix, $role) = @_; ## ## setup the various environment variables we need @@ -274,6 +274,15 @@ sub provision($$) printing = bsd printcap name = /dev/null +"; + + if ($role eq "dc") { + print CONF "\tdomain logons = yes\n"; + print CONF "\tdomain master = yes\n"; + } + +print CONF " + [tmp] path = $tmpdir read only = no |