svn commit: samba r25359 - in branches/SAMBA_4_0: .
source/selftest/env
jelmer at samba.org
jelmer at samba.org
Wed Sep 26 19:23:55 GMT 2007
Author: jelmer
Date: 2007-09-26 19:23:54 +0000 (Wed, 26 Sep 2007)
New Revision: 25359
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25359
Log:
Set up Samba3 as dc.
Modified:
branches/SAMBA_4_0/
branches/SAMBA_4_0/source/selftest/env/Samba3.pm
Changeset:
Property changes on: branches/SAMBA_4_0
___________________________________________________________________
Name: bzr:revision-info
...skipped...
Name: bzr:revision-id:v3-trunk0
...skipped...
Modified: branches/SAMBA_4_0/source/selftest/env/Samba3.pm
===================================================================
--- branches/SAMBA_4_0/source/selftest/env/Samba3.pm 2007-09-26 19:22:13 UTC (rev 25358)
+++ branches/SAMBA_4_0/source/selftest/env/Samba3.pm 2007-09-26 19:23:54 UTC (rev 25359)
@@ -96,7 +96,7 @@
{
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 @@
close(CONF);
}
-sub provision($$)
+sub provision($$$)
{
- my ($self, $prefix) = @_;
+ my ($self, $prefix, $role) = @_;
##
## setup the various environment variables we need
@@ -274,6 +274,15 @@
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
More information about the samba-cvs
mailing list