summaryrefslogtreecommitdiff
path: root/source4/script/provision.pl
diff options
context:
space:
mode:
Diffstat (limited to 'source4/script/provision.pl')
-rwxr-xr-xsource4/script/provision.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/script/provision.pl b/source4/script/provision.pl
index e71c065328..8bafa6a030 100755
--- a/source4/script/provision.pl
+++ b/source4/script/provision.pl
@@ -27,7 +27,8 @@ sub randguid()
my $r3 = int(rand(2**16));
my $r4 = int(rand(2**16));
my $r5 = int(rand(2**32));
- return sprintf("%08x-%04x-%04x-%04x-%08x", $r1, $r2, $r3, $r4, $r5);
+ my $r6 = int(rand(2**16));
+ return sprintf("%08x-%04x-%04x-%04x-%08x%04x", $r1, $r2, $r3, $r4, $r5, $r6);
}
sub randsid()
@@ -63,6 +64,10 @@ sub substitute($)
return $domain;
}
+ if ($var eq "REALM") {
+ return $realm;
+ }
+
if ($var eq "HOSTNAME") {
return $hostname;
}