summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-08-27 17:27:16 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-08-28 07:57:29 +1000
commitd5b9972215071d3d09b586fcc371c69002f89192 (patch)
tree939d2f9538f62aff891a56be8a98e5812a77a87a
parent85f1c4fdfdda7e9c765c6c4ab7f50519c657a409 (diff)
downloadsamba-d5b9972215071d3d09b586fcc371c69002f89192.tar.gz
s4-classicupgrade: Read WINS DB before the provision
-rw-r--r--source4/scripting/python/samba/upgrade.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/source4/scripting/python/samba/upgrade.py b/source4/scripting/python/samba/upgrade.py
index 4d4b08a76c9..10aa0ec6b75 100644
--- a/source4/scripting/python/samba/upgrade.py
+++ b/source4/scripting/python/samba/upgrade.py
@@ -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)