summaryrefslogtreecommitdiff
path: root/source4/script
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2005-01-16 22:38:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:08:54 -0500
commit8a153e5ca2df565b3b38786dcec72635fd196d5b (patch)
tree57d5df144b8f1b2a4accf7be98fad8269606cac1 /source4/script
parent63f79d11b802bebe105eccd385fab452e4a68e39 (diff)
downloadsamba-8a153e5ca2df565b3b38786dcec72635fd196d5b.tar.gz
samba-8a153e5ca2df565b3b38786dcec72635fd196d5b.tar.bz2
samba-8a153e5ca2df565b3b38786dcec72635fd196d5b.zip
r4785: add schema objects to provision
but let schema checking be disabled by default until we can pass all test with it enabled (This used to be commit e2c1ee1dd896c978e9be72fcbe4abce42482b7c9)
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";
}