Hai Roberto,

Thank you for your insight also.
Can you post you complete (anonimized where needed) smb.conf. 
And the running version you have and the version your upgrading to.
This way we have most of the needed info. 

In general.
For samba ( standalone/members ) systemd uses one or more : smbd nmbd winbind
For samba ( AD DC ) systemd uses samba-ad-dc

The change to samba AD DC with systemd is: 

systemctl disable smbd nmbd winbind
systemctl mask smbd nmbd winbind
systemctl stop smbd nmbd winbind

systemctl enable samba-ad-dc
systemctl unmask samba-ad-dc
systemctl start samba-ad-dc


But, this wont help on the upgrade. 
/var/lib/dpkg/info/winbind.postinst should detect the "AD DC" server.
The same way /var/lib/dpkg/info/samba.postinst is doing. 


Greetz, 

Louis




> -----Oorspronkelijk bericht-----
> Van: Roberto C. Sánchez [mailto:robe...@connexer.com] 
> Verzonden: maandag 31 juli 2017 13:23
> Aan: L.P.H. van Belle; 863...@bugs.debian.org
> Onderwerp: Re: Bug#863285: [winbind] Install/Updates Fail 
> When Samba Running as samba 4 Domain
> 
> On Mon, Jul 31, 2017 at 09:51:25AM +0200, L.P.H. van Belle wrote:
> >    Hai, this is know.
> >     
> >    Did you check and did you correct your smb.conf before 
> you started
> >    upgrading.
> >    You posted a partial smb.conf, that did not help, can 
> you post your
> >    complete smb.conf ( anonimized if needed. ).
> >     
> I know that I am not the original submitter, but I too have 
> encountered the problem reported in this bug.
> 
> >    There are 2 known things when upgrade winbind.
> >    1) A failty smb.conf, prevents/failes upgrading.
> >     
> >    The fix :  correct the smb.conf  and run dpkg --reconfigure -a
> >     
> I have confirmed that my smb.conf is correct and not faulty 
> and the upgrade still fails.
> 
> >    2) possible problem with nsswitch.conf
> >    if you have winbind before compat, switch them and run 
> dpkg --reconfigure
> >    -a
> >     
> I have compat first in nsswitch.conf on my systems.
> 
> In my case, the solution was to mask the winbind and smbd 
> units in systemd.  I also masked nmbd to be safe, though the 
> documentation indicates that nmbd does not run when Samba is 
> configured as an AD DC.
> 
> I will be upgrading all of my systems soon, but I am 
> retaining a pre-upgrade snapshot of one of the VMs that runs 
> as an AD DC.  If I can help with resolving this, please let me know.
> 
> Regards,
> 
> -Roberto
> 
> --
> Roberto C. Sánchez
> 
> 

Reply via email to