[Samba] Upgrading samba from jessie (4.2) to stretch (4.5) in AD mode...

L.P.H. van Belle belle at bazuin.nl
Fri Jun 23 13:04:16 UTC 2017


Hai, 

Maybe but that on wont catch the "security = share" settings also. 
That settings is removed in 4.0. 
Debian 3.6 => 4.1.17 => 4.2.10 => 4.5.8 
So if one payed attention to the 3.6 to 4.1 upgrade the "security = share" would already have been removed, but in this case not. 

Own and this also happens on a member server.. 

Greetz, 

Louis



> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens 
> Rowland Penny via samba
> Verzonden: vrijdag 23 juni 2017 14:56
> Aan: samba at lists.samba.org
> Onderwerp: Re: [Samba] Upgrading samba from jessie (4.2) to 
> stretch (4.5) in AD mode...
> 
> On Fri, 23 Jun 2017 14:15:28 +0200
> "L.P.H. van Belle via samba" <samba at lists.samba.org> wrote:
> 
> > Hai,
> > 
> > The "scripts" are not the problem, i'll explain more. 
> > 
> 
> I cannot really comment on the systemd settings because I do 
> not use it, but I can comment on this:
> 
> if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
> 	if [ -x "/etc/init.d/winbind" ]; then
> 		update-rc.d winbind defaults >/dev/null
> 		invoke-rc.d winbind start || exit $?
> 	fi
> fi
> 
> Saying that is all down to a badly configured smb.conf is 
> missing the point.
> It would seem that debian is treating an upgrade of winbind 
> as a new install, so the code fragment above gets run and it 
> makes the 'winbind'
> init script run at boot and then tries to start winbind. 
> Surely it should be something like this:
> 
> 
> if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
>     SERVER_ROLE=$(samba-tool testparm 
> --parameter-name="server role"  2>/dev/null | tail -1 || true)
>     if [ "$SERVER_ROLE" != "active directory domain 
> controller" ]; then
> 	    if [ -x "/etc/init.d/winbind" ]; then
> 		    update-rc.d winbind defaults >/dev/null
> 		    invoke-rc.d winbind start || exit $?
> 	    fi
>     fi
> fi
> 
> This way, winbind will only get enabled and started if 
> smb.conf isn't already set up as a DC, which it wont be, if 
> it is a new install or if smb.conf is set up as something 
> else and Samba is being upgraded.
> 
> Rowland
> 
> 
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
> 




More information about the samba mailing list