]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
samba-tool domain: expand string_version_to_constant range
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 31 Aug 2022 01:35:57 +0000 (13:35 +1200)
committerDouglas Bagnall <dbagnall@samba.org>
Tue, 6 Sep 2022 21:12:36 +0000 (21:12 +0000)
This won't actually have any effect yet -- the new values are
inaccessible in the place it is used because the range is limited by
the --function-level option config.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/netcmd/domain.py

index 396f5c3ab6cfa40bf5c740200e2003deeb3d2a7c..d02028cdf06f7e80999c1f722d57f2e1e6e949ac 100644 (file)
@@ -111,9 +111,13 @@ from samba.trust_utils import CreateTrustedDomainRelax
 from samba import dsdb
 
 string_version_to_constant = {
+    "2000": DS_DOMAIN_FUNCTION_2000,
+    "2003": DS_DOMAIN_FUNCTION_2003,
+    "2008": DS_DOMAIN_FUNCTION_2008,
     "2008_R2": DS_DOMAIN_FUNCTION_2008_R2,
     "2012": DS_DOMAIN_FUNCTION_2012,
     "2012_R2": DS_DOMAIN_FUNCTION_2012_R2,
+    "2016": DS_DOMAIN_FUNCTION_2016,
 }
 
 common_provision_join_options = [