mirror of
https://github.com/samba-team/samba.git
synced 2025-07-27 07:42:04 +03:00
s4-classicupgrade: Read WINS DB before the provision
This commit is contained in:
@ -809,6 +809,13 @@ Please fix this account before attempting to upgrade again
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
logger.info("Reading WINS database")
|
||||
samba3_winsdb = None
|
||||
try:
|
||||
samba3_winsdb = samba3.get_wins_db()
|
||||
except IOError, e:
|
||||
logger.warn('Cannot open wins database, Ignoring: %s', str(e))
|
||||
|
||||
if not (serverrole == "ROLE_DOMAIN_BDC" or serverrole == "ROLE_DOMAIN_PDC"):
|
||||
dns_backend = "NONE"
|
||||
|
||||
@ -827,12 +834,6 @@ Please fix this account before attempting to upgrade again
|
||||
# Import WINS database
|
||||
logger.info("Importing WINS database")
|
||||
|
||||
samba3_winsdb = None
|
||||
try:
|
||||
samba3_winsdb = samba3.get_wins_db()
|
||||
except IOError, e:
|
||||
logger.warn('Cannot open wins database, Ignoring: %s', str(e))
|
||||
|
||||
if samba3_winsdb:
|
||||
import_wins(Ldb(result.paths.winsdb), samba3_winsdb)
|
||||
|
||||
|
Reference in New Issue
Block a user