mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
s4-s3upgrade: Force ldapsam:trusted = yes
While this setting is not the default in Samba3, any domain that is in a suitable condition to upgrade to Samba4 should already be in the layout that ldapsam:trusted uses. It can be turned off by setting ldapsam:trusted=false in the smb.conf. Many upgrades to Samba4 happen on a different host to the old Samba3 domain and this avoids the need to configure nss_ldap only for the duration of the upgrade. Andrew Bartlett
This commit is contained in:
parent
9cd664b2e9
commit
a0a83802fb
@ -469,6 +469,9 @@ def upgrade_from_samba3(samba3, logger, targetdir, session_info=None, useeadb=Fa
|
||||
realm = samba3.lp.get("realm")
|
||||
netbiosname = samba3.lp.get("netbios name")
|
||||
|
||||
if samba3.lp.get("ldapsam:trusted") is None:
|
||||
samba3.lp.set("ldapsam:trusted", "yes")
|
||||
|
||||
# secrets db
|
||||
try:
|
||||
secrets_db = samba3.get_secrets_db()
|
||||
|
Loading…
x
Reference in New Issue
Block a user