diff options
author | Andrew Bartlett <abartlet@samba.org> | 2004-10-21 07:10:59 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:02:22 -0500 |
commit | 1d990b526ea2844263a40c734b7d7aaabcb26822 (patch) | |
tree | 5cb24d435bf7ec49060896429b7e59c627e64414 | |
parent | a3ff7f7d37f9c97f99a63bc90cf0dbe6d374d6e9 (diff) | |
download | samba-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)
-rw-r--r-- | source4/provision.ldif | 3 | ||||
-rwxr-xr-x | source4/script/provision.pl | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/source4/provision.ldif b/source4/provision.ldif index 2497b2cb7a..ba204285fb 100644 --- a/source4/provision.ldif +++ b/source4/provision.ldif @@ -472,6 +472,8 @@ operatingSystemVersion: 4.0 dNSHostName: ${DNSNAME} objectCategory: CN=Computer,CN=Schema,CN=Configuration,${BASEDN} isCriticalSystemObject: TRUE +unicodePwd: ${RANDPASS} +servicePrincipalName: HOST/${DNSNAME} dn: CN=krbtgt,CN=Users,${BASEDN} objectClass: top @@ -506,6 +508,7 @@ sAMAccountType: 805306368 servicePrincipalName: kadmin/changepw objectCategory: CN=Person,CN=Schema,CN=Configuration,${BASEDN} isCriticalSystemObject: TRUE +unicodePwd: ${RANDPASS} dn: CN=Domain Computers,CN=Users,${BASEDN} objectClass: top 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(); } |