<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hello Mathieu,
    <br>
    <br>
    thanks for your answer, you are right.
    <br>
    <blockquote type="cite" style="color: #000000;">As said before, the
      solution is to mask smbd, nmbd and winbind services:
      <br>
      sudo systemctl mask smbd nmbd winbind
      <br>
      <br>
      The proper solution would be to better document how to move to
      <br>
      samba-ad-dc, AND to automatically mask those services on upgrade
      when
      <br>
      "SERVER ROLE = ACTIVE DIRECTORY DOMAIN CONTROLLER".
      <br>
      <br>
      Regards
      <br>
    </blockquote>
    <br>
    On my former try the masking was not finally working, but on a
    second I found an other problem in my smb.conf.
    <br>
    <br>
    What i did:
    <br>
    <br>
    systemctl disable smbd nmbd winbind
    <br>
    systemctl mask smbd nmbd winbind
    <br>
    systemctl stop smbd nmbd winbind
    <br>
    <br>
    systemctl enable samba-ad-dc
    <br>
    systemctl unmask samba-ad-dc
    <br>
    systemctl start samba-ad-dc
    <br>
    <br>
    AND I had to remove from the smb.conf:
    <br>
    <br>
    dcerpc endpoint servers = +spoolss
    <br>
    <br>
    <br>
    The dist-upgrade is ok and the AD-DC is running with stretch.
    <br>
    <br>
    Thanks
    <br>
    Frank
  </body>
</html>