1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r4763: Join Samba4 to itself during the provision process.

Andrew Bartlett
(This used to be commit feca96fe5a)
This commit is contained in:
Andrew Bartlett 2005-01-15 22:15:12 +00:00 committed by Gerald (Jerry) Carter
parent 8799d6b44c
commit dae67d2f0b
3 changed files with 20 additions and 1 deletions

View File

@ -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}

View File

@ -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();
}

View File

@ -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}