mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
provision: Allow more OS levels in sambadns
While we do not support these yet, they make no difference to DNS, so permit up to 2012R2 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Oct 20 23:23:13 CEST 2015 on sn-devel-104
This commit is contained in:
parent
35f267304e
commit
f00dd4a8d1
@ -35,7 +35,8 @@ from samba.dcerpc import dnsp, misc, security
|
||||
from samba.dsdb import (
|
||||
DS_DOMAIN_FUNCTION_2000,
|
||||
DS_DOMAIN_FUNCTION_2003,
|
||||
DS_DOMAIN_FUNCTION_2008_R2
|
||||
DS_DOMAIN_FUNCTION_2008_R2,
|
||||
DS_DOMAIN_FUNCTION_2012_R2
|
||||
)
|
||||
from samba.descriptor import (
|
||||
get_domain_descriptor,
|
||||
@ -967,7 +968,7 @@ def is_valid_dns_backend(dns_backend):
|
||||
|
||||
|
||||
def is_valid_os_level(os_level):
|
||||
return DS_DOMAIN_FUNCTION_2000 <= os_level <= DS_DOMAIN_FUNCTION_2008_R2
|
||||
return DS_DOMAIN_FUNCTION_2000 <= os_level <= DS_DOMAIN_FUNCTION_2012_R2
|
||||
|
||||
|
||||
def create_dns_legacy(samdb, domainsid, forestdn, dnsadmins_sid):
|
||||
|
Loading…
Reference in New Issue
Block a user