Hello Mathieu,
thanks for your answer, you are right.
As said before, the solution is to mask smbd, nmbd and winbind services:
sudo systemctl mask smbd nmbd winbind
The proper solution would be to better document how to move to
samba-ad-dc, AND to automatically mask those services on upgrade when
"SERVER ROLE = ACTIVE DIRECTORY DOMAIN CONTROLLER".
Regards
On my former try the masking was not finally working, but on a second I
found an other problem in my smb.conf.
What i did:
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
AND I had to remove from the smb.conf:
dcerpc endpoint servers = +spoolss
The dist-upgrade is ok and the AD-DC is running with stretch.
Thanks
Frank