mirror of
https://github.com/samba-team/samba.git
synced 2025-07-21 12:59:09 +03:00
s4-idmap: Add parameter 'idmap_ldb:use rfc2307' and correct implementation errors
This commit is contained in:
@ -1604,7 +1604,8 @@ def provision(logger, session_info, credentials, smbconf=None,
|
||||
backend_type=None, sitename=None,
|
||||
ol_mmr_urls=None, ol_olc=None, slapd_path="/bin/false",
|
||||
useeadb=False, am_rodc=False,
|
||||
lp=None, use_ntvfs=False):
|
||||
lp=None, use_ntvfs=False,
|
||||
use_rfc2307=False):
|
||||
"""Provision samba4
|
||||
|
||||
:note: caution, this wipes all existing data!
|
||||
@ -1648,6 +1649,9 @@ def provision(logger, session_info, credentials, smbconf=None,
|
||||
|
||||
server_services = []
|
||||
global_param = {}
|
||||
if use_rfc2307:
|
||||
global_param["idmap_ldb:use rfc2307"] = ["yes"]
|
||||
|
||||
if dns_backend == "SAMBA_INTERNAL":
|
||||
server_services.append("+dns")
|
||||
|
||||
|
@ -702,7 +702,7 @@ Please fix this account before attempting to upgrade again
|
||||
dom_for_fun_level=dsdb.DS_DOMAIN_FUNCTION_2003,
|
||||
hostname=netbiosname.lower(), machinepass=machinepass,
|
||||
serverrole=serverrole, samdb_fill=FILL_FULL,
|
||||
useeadb=useeadb, dns_backend=dns_backend)
|
||||
useeadb=useeadb, dns_backend=dns_backend, use_rfc2307=True)
|
||||
result.report_logger(logger)
|
||||
|
||||
# Import WINS database
|
||||
|
Reference in New Issue
Block a user