diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-09-26 19:23:54 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:07:17 -0500 |
commit | 4820691fd9c2cd818b41e2845b990310e58a3cc4 (patch) | |
tree | c3fd36e8690c96158cf2e15520d88445bdcedcce /source4/selftest/env | |
parent | cc6881b8ea218ef85ae0860cb3cf92bac263a3d7 (diff) | |
download | samba-4820691fd9c2cd818b41e2845b990310e58a3cc4.tar.gz samba-4820691fd9c2cd818b41e2845b990310e58a3cc4.tar.bz2 samba-4820691fd9c2cd818b41e2845b990310e58a3cc4.zip |
r25359: Set up Samba3 as dc.
(This used to be commit acaa484a5c8b4a99c756d1831898712d66a28a3d)
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 |