summaryrefslogtreecommitdiff
path: root/source4/setup/provision
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-06-15 19:52:58 +1000
committerAndrew Bartlett <abartlet@samba.org>2010-06-16 09:57:51 +1000
commit814cb8895db8fbb39761ce5b2e581cb8cec9f77f (patch)
treebe99175f621cbb727a0755dfffa73b8f103f50b0 /source4/setup/provision
parent697cd139782a8337c1979442fc5d5705e748aa3f (diff)
downloadsamba-814cb8895db8fbb39761ce5b2e581cb8cec9f77f.tar.gz
samba-814cb8895db8fbb39761ce5b2e581cb8cec9f77f.tar.bz2
samba-814cb8895db8fbb39761ce5b2e581cb8cec9f77f.zip
s4:provision Allow functional level 2000 to be chosen
Diffstat (limited to 'source4/setup/provision')
-rwxr-xr-xsource4/setup/provision4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/setup/provision b/source4/setup/provision
index 7730294833..21b2d31de3 100755
--- a/source4/setup/provision
+++ b/source4/setup/provision
@@ -104,7 +104,7 @@ parser.add_option("--server-role", type="choice", metavar="ROLE",
choices=["domain controller", "dc", "member server", "member", "standalone"],
help="The server role (domain controller | dc | member server | member | standalone). Default is standalone.")
parser.add_option("--function-level", type="choice", metavar="FOR-FUN-LEVEL",
- choices=["2003", "2008", "2008_R2"],
+ choices=["2000", "2003", "2008", "2008_R2"],
help="The domain and forest function level (2003 | 2008 | 2008_R2). Default is (Windows) 2003 (Native).")
parser.add_option("--partitions-only",
help="Configure Samba's partitions, but do not modify them (ie, join a BDC)", action="store_true")
@@ -192,6 +192,8 @@ else:
if opts.function_level is None:
dom_for_fun_level = None
+elif opts.function_level == "2000":
+ dom_for_fun_level = DS_DOMAIN_FUNCTION_2000
elif opts.function_level == "2003":
dom_for_fun_level = DS_DOMAIN_FUNCTION_2003
elif opts.function_level == "2008":