summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/provision.ldif2
-rwxr-xr-xsource4/script/provision.pl5
-rw-r--r--source4/secrets.ldif14
3 files changed, 20 insertions, 1 deletions
diff --git a/source4/provision.ldif b/source4/provision.ldif
index 4815a67cf5..4a6b881d3b 100644
--- a/source4/provision.ldif
+++ b/source4/provision.ldif
@@ -532,7 +532,7 @@ operatingSystemVersion: 4.0
dNSHostName: ${DNSNAME}
objectCategory: CN=Computer,CN=Schema,CN=Configuration,${BASEDN}
isCriticalSystemObject: TRUE
-unicodePwd: ${RANDPASS}
+unicodePwd: ${JOINPASS}
servicePrincipalName: HOST/${DNSNAME}
servicePrincipalName: HOST/${NETBIOSNAME}
servicePrincipalName: CIFS/${DNSNAME}
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();
}
diff --git a/source4/secrets.ldif b/source4/secrets.ldif
index 63ce7f2afb..ff8ef06ece 100644
--- a/source4/secrets.ldif
+++ b/source4/secrets.ldif
@@ -7,3 +7,17 @@ dn: CN=LSA Secrets
objectClass: top
objectClass: container
cn: LSA Secrets
+
+dn: CN=Primary Domains
+objectClass: top
+objectClass: container
+cn: Primary Domains
+
+dn: CN=${DOMAIN},CN=Primary Domains
+objectClass: top
+objectClass: primaryDomain
+cn: ${DOMAIN}
+secret: ${JOINPASS}
+whenCreated: ${LDAPTIME}
+whenChanged: ${LDAPTIME}
+