s4:provision Allow functional level 2000 to be chosen
authorAndrew Bartlett <abartlet@samba.org>
Tue, 15 Jun 2010 09:52:58 +0000 (19:52 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 15 Jun 2010 23:57:51 +0000 (09:57 +1000)
source4/setup/provision

index 7730294833bccc66adab49142cab69032dc552d5..21b2d31de3a40d43f1095ae9f0fa5b8db46557ff 100755 (executable)
@@ -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":