From 5af823a709738c343354dd20251025530bbb28bb Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Wed, 31 Aug 2022 13:35:57 +1200 Subject: [PATCH] samba-tool domain: expand string_version_to_constant range 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 Reviewed-by: Andrew Bartlett --- python/samba/netcmd/domain.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/samba/netcmd/domain.py b/python/samba/netcmd/domain.py index 396f5c3ab6c..d02028cdf06 100644 --- a/python/samba/netcmd/domain.py +++ b/python/samba/netcmd/domain.py @@ -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 = [ -- 2.47.3