1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

r4400: Pass rootdse.ldif past the subst code.

Andrew Bartlett
(This used to be commit d901c8fb64)
This commit is contained in:
Andrew Bartlett 2004-12-29 22:59:28 +00:00 committed by Gerald (Jerry) Carter
parent b386af06d0
commit 07e1553f60

View File

@ -364,11 +364,28 @@ system("ldbadd -H newsam.ldb newsam.ldif");
print "done\n";
$data = FileLoad("rootdse.ldif") || die "Unable to load rootdse.ldif\n";
$res = "";
print "applying substitutions ...\n";
while ($data =~ /(.*?)\$\{(\w*)\}(.*)/s) {
my $sub = substitute($2);
$res .= "$1$sub";
$data = $3;
}
$res .= $data;
print "saving ldif to newrootdse.ldif ...\n";
FileSave("newrootdse.ldif", $res);
unlink("newrootdse.ldb");
print "creating newrootdse.ldb ...\n";
system("ldbadd -H newrootdse.ldb rootdse.ldif");
system("ldbadd -H newrootdse.ldb newrootdse.ldif");
print "done\n";
@ -408,6 +425,8 @@ Installation:
Samba4 installation
- Please move newrootdse.ldb to rootdse.ldb in the private/ directory
of your Samba4 installation
- Please move newhklm.ldb to hklm.ldb in the private/ directory
of your Samba4 installation
- Please use $dnsdomain.zone to in BIND dns server
";