Samba4 as AD DC - upgrading without any trouble

in linux •  7 years ago 

At home and at work I'm using Samba4 as domain cotroller to provide LDAP authentication to all services, so users have no need to remember all these logins and passwords. It was working flawlessly until I've upgraded my Debian machine which serves as domain controller from Jessie to Stretch.

While upgrading Debian 8 to 9 apt throw away error about inability to upgrade samba packages. Why? Well, it was easy enough - post-installation script tries to restart smbd and nmbd services with systemd which isn't what we want, because Debian have samba-ad-dc unit for controlling Samba in AD DC mode. First two units can't actually coexists (and colaunch, corestart, etc.) with last one because first two controls two (more or less) independent systems, while last one controls both of them.

Solution is to mask smbd and nmbd units before upgrading:

systemctl mask smbd
systemctl mask nmbd

Even if you encounter this problem after upgrading - don't worry, mask these units and continue with upgrade.

By the way, this recipe also applies to simple samba upgrade.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Congratulations @pztrn! You have received a personal award!

1 Year on Steemit
Click on the badge to view your own Board of Honor on SteemitBoard.

Upvote this notificationto to help all Steemit users. Learn why here!

Congratulations @pztrn! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Do not miss the last post from @steemitboard:

New japanese speaking community Steem Meetup badge
Vote for @Steemitboard as a witness to get one more award and increased upvotes!