summaryrefslogtreecommitdiff
path: root/source4/script/provision.pl
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-10-21 07:10:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:02:22 -0500
commit1d990b526ea2844263a40c734b7d7aaabcb26822 (patch)
tree5cb24d435bf7ec49060896429b7e59c627e64414 /source4/script/provision.pl
parenta3ff7f7d37f9c97f99a63bc90cf0dbe6d374d6e9 (diff)
downloadsamba-1d990b526ea2844263a40c734b7d7aaabcb26822.tar.gz
samba-1d990b526ea2844263a40c734b7d7aaabcb26822.tar.bz2
samba-1d990b526ea2844263a40c734b7d7aaabcb26822.zip
r3109: Give krbtgt and our machine account a random password in provision.
Andrew Bartlett (This used to be commit 560a8c9f424495f85284a456e829326d2a931e6e)
Diffstat (limited to 'source4/script/provision.pl')
-rwxr-xr-xsource4/script/provision.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/script/provision.pl b/source4/script/provision.pl
index 4b51e9611b..c00511f373 100755
--- a/source4/script/provision.pl
+++ b/source4/script/provision.pl
@@ -137,6 +137,10 @@ sub substitute($)
return $opt_adminpass;
}
+ if ($var eq "RANDPASS") {
+ return randpass();
+ }
+
if ($var eq "NTTIME") {
return "" . nttime();
}