summaryrefslogtreecommitdiff
path: root/source4/script
diff options
context:
space:
mode:
Diffstat (limited to 'source4/script')
-rwxr-xr-xsource4/script/provision.pl11
1 files changed, 11 insertions, 0 deletions
diff --git a/source4/script/provision.pl b/source4/script/provision.pl
index ca54b07fce..98e25095e6 100755
--- a/source4/script/provision.pl
+++ b/source4/script/provision.pl
@@ -20,6 +20,7 @@ my $dnsname;
my $basedn;
my $defaultsite = "Default-First-Site-Name";
my $joinpass = randpass();
+my $usn = 1;
# return the current NTTIME as an integer
sub nttime()
@@ -122,6 +123,10 @@ sub substitute($)
return randguid();
}
+ if ($var eq "NEWSCHEMAGUID") {
+ return randguid();
+ }
+
if ($var eq "DOMAINGUID") {
return $opt_domainguid;
}
@@ -166,6 +171,12 @@ sub substitute($)
return $opt_users;
}
+ if ($var eq "USN") {
+ my $ret = $usn;
+ $usn = $ret + 1;
+ return $ret;
+ }
+
die "ERROR: Uknown substitution variable $var\n";
}