mirror of
https://github.com/samba-team/samba.git
synced 2025-07-16 20:59:12 +03:00
libds:common Remove DS_DC_* domain functionality flags
These are just a subset of the DS_DOMAIN_ functionality flags, are compared and often confused with each other. Just make them one set. Andrew Bartlett
This commit is contained in:
@ -40,10 +40,6 @@ from samba.dsdb import (
|
||||
DS_DOMAIN_FUNCTION_2003_MIXED,
|
||||
DS_DOMAIN_FUNCTION_2008,
|
||||
DS_DOMAIN_FUNCTION_2008_R2,
|
||||
DS_DC_FUNCTION_2000,
|
||||
DS_DC_FUNCTION_2003,
|
||||
DS_DC_FUNCTION_2008,
|
||||
DS_DC_FUNCTION_2008_R2,
|
||||
)
|
||||
|
||||
class cmd_domainlevel(Command):
|
||||
@ -119,7 +115,7 @@ class cmd_domainlevel(Command):
|
||||
self.message("\nATTENTION: You run SAMBA 4 on a forest function level lower than Windows 2003 (Native). This isn't supported! Please raise!")
|
||||
if level_domain < DS_DOMAIN_FUNCTION_2003:
|
||||
self.message("\nATTENTION: You run SAMBA 4 on a domain function level lower than Windows 2003 (Native). This isn't supported! Please raise!")
|
||||
if min_level_dc < DS_DC_FUNCTION_2003:
|
||||
if min_level_dc < DS_DOMAIN_FUNCTION_2003:
|
||||
self.message("\nATTENTION: You run SAMBA 4 on a lowest function level of a DC lower than Windows 2003. This isn't supported! Please step-up or upgrade the concerning DC(s)!")
|
||||
|
||||
self.message("")
|
||||
@ -154,13 +150,13 @@ class cmd_domainlevel(Command):
|
||||
outstr = "higher than 2008 R2"
|
||||
self.message("Domain function level: (Windows) " + outstr)
|
||||
|
||||
if min_level_dc == DS_DC_FUNCTION_2000:
|
||||
if min_level_dc == DS_DOMAIN_FUNCTION_2000:
|
||||
outstr = "2000"
|
||||
elif min_level_dc == DS_DC_FUNCTION_2003:
|
||||
elif min_level_dc == DS_DOMAIN_FUNCTION_2003:
|
||||
outstr = "2003"
|
||||
elif min_level_dc == DS_DC_FUNCTION_2008:
|
||||
elif min_level_dc == DS_DOMAIN_FUNCTION_2008:
|
||||
outstr = "2008"
|
||||
elif min_level_dc == DS_DC_FUNCTION_2008_R2:
|
||||
elif min_level_dc == DS_DOMAIN_FUNCTION_2008_R2:
|
||||
outstr = "2008 R2"
|
||||
else:
|
||||
outstr = "higher than 2008 R2"
|
||||
|
@ -43,7 +43,7 @@ from samba.auth import system_session, admin_session
|
||||
import samba
|
||||
from samba import version, Ldb, substitute_var, valid_netbios_name
|
||||
from samba import check_all_substituted, read_and_sub_file, setup_file
|
||||
from samba.dsdb import DS_DOMAIN_FUNCTION_2003, DS_DC_FUNCTION_2008
|
||||
from samba.dsdb import DS_DOMAIN_FUNCTION_2003, DS_DOMAIN_FUNCTION_2008
|
||||
from samba.dcerpc import security
|
||||
from samba.dcerpc.misc import SEC_CHAN_BDC, SEC_CHAN_WKSTA
|
||||
from samba.idmap import IDmapDB
|
||||
@ -955,7 +955,7 @@ def setup_samdb(path, setup_path, session_info, provision_backend, lp, names,
|
||||
|
||||
# ATTENTION: Do NOT change these default values without discussion with the
|
||||
# team and/or release manager. They have a big impact on the whole program!
|
||||
domainControllerFunctionality = DS_DC_FUNCTION_2008
|
||||
domainControllerFunctionality = DS_DOMAIN_FUNCTION_2008
|
||||
|
||||
if dom_for_fun_level is None:
|
||||
dom_for_fun_level = DS_DOMAIN_FUNCTION_2003
|
||||
|
Reference in New Issue
Block a user