s3_upgrade: Update commandline options and use updated samba3 python module
authorAmitay Isaacs <amitay@gmail.com>
Thu, 25 Aug 2011 07:20:05 +0000 (17:20 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 26 Aug 2011 00:06:33 +0000 (10:06 +1000)
commitd8465f2a918deb9fb94f4dc5ad85bc07c073bd05
tree0a13ff027cf22607c0a3e3b2d672455a9a2fdd5b
parentd2536b31200106ad0bbea60abd3e654c23540e6d
s3_upgrade: Update commandline options and use updated samba3 python module

upgrade_from_s3 script now requires samba3 configuration file and target
directory for samba4 database. In addition, it either uses --libdir option
or --testparm option to correctly guess the paths for samba3 databases
(private dir and state directory).

Usage: upgrade_from_s3 [options] <configuration_file> <targetdir>

Input arguments are:
  <configuration_file> - path to existing smb.conf
  <targetdir>          - directory in which samba4 database will be created

In addition, specify either samba3 database directory (with --libdir) or
samba3 testparm utility (with --testparm).

Before using passdb interface, initialize s3 loadparm context using
correct path settings for private dir and state directory.

Export account policy from s3 to s4.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
source4/scripting/python/samba/upgrade.py
source4/setup/tests/blackbox_s3upgrade.sh
source4/setup/upgrade_from_s3