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:
parent
8799d6b44c
commit
dae67d2f0b
@ -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}
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user