summaryrefslogtreecommitdiff
path: root/source4/script
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-01-15 22:15:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:08:51 -0500
commitdae67d2f0bb6ea2553af2274d52021e26832dc41 (patch)
tree186d9c9d05e5efb4936d48fc56f2ba7f8dc58a50 /source4/script
parent8799d6b44c15a5e11c1e3528092fbca236561253 (diff)
downloadsamba-dae67d2f0bb6ea2553af2274d52021e26832dc41.tar.gz
samba-dae67d2f0bb6ea2553af2274d52021e26832dc41.tar.bz2
samba-dae67d2f0bb6ea2553af2274d52021e26832dc41.zip
r4763: Join Samba4 to itself during the provision process.
Andrew Bartlett (This used to be commit feca96fe5a1612592757f53f7aa4eb5a39fd24ff)
Diffstat (limited to 'source4/script')
-rwxr-xr-xsource4/script/provision.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/script/provision.pl b/source4/script/provision.pl
index bfeefc6e86..ca54b07fce 100755
--- a/source4/script/provision.pl
+++ b/source4/script/provision.pl
@@ -19,6 +19,7 @@ my $netbiosname;
my $dnsname;
my $basedn;
my $defaultsite = "Default-First-Site-Name";
+my $joinpass = randpass();
# return the current NTTIME as an integer
sub nttime()
@@ -141,6 +142,10 @@ sub substitute($)
return randpass();
}
+ if ($var eq "JOINPASS") {
+ return $joinpass;
+ }
+
if ($var eq "NTTIME") {
return "" . nttime();
}