An approach to solving the 'different paths' upgrade problem
Andrew Bartlett
abartlet at samba.org
Sat Aug 20 02:43:25 MDT 2011
Amitay,
I've been thinking about the issue with upgrading Samba4 into a
different prefix. Currently upgrade_from_s3 is rather clunky in this
case.
My proposed solution uses this command:
testparm --parameter-name='netbios name' -l -s 2> /dev/null
This works not only for netbios name, but also for state dir, private
dir etc. It returns the option, even if the smb.conf doesn't set it -
it was added by Debian for distro-specific scripting around smb.conf
specified paths.
>From this, we can extract all the parameters we need. The advantage
here is that we won't be using the Samba 4.0 testparm or loadparm system
- we will have the user point us at the old testparm (with
--old-testparm=), which will be compiled against the correct paths.
We can then load this into the loadparm system using param.set_option(),
or pass it to provision etc.
Andrew Bartlett
--
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
More information about the samba-technical
mailing list