Skip to content

Commit

Permalink
s4-s3upgrade: Force ldapsam:trusted = yes
Browse files Browse the repository at this point in the history
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
  • Loading branch information
abartlet committed May 2, 2012
1 parent 9cd664b commit a0a8380
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source4/scripting/python/samba/upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit a0a8380

Please sign in to comment.