Michael Papet
2017-05-24 21:27:39 UTC
Package: winbindVersion: 2:4.5.8+dfsg-2Severity: normal
--- Please enter the report below this line. ---If you configure /etc/samba/smb.conf as a Samba 4 domain controller, then winbind updates/installs break. Â
winbind.postinst unconditionally attempts to restart the winbind service. Â Any attempts to start winbind while samba is running in DC mode fail. Â My understanding is when running as a domain controller, samba controls winbind as a child process. Â Maybe I'm wrong about that.
It seems like line 32 in /var/lib/dpkg/info/winbind.postinst needs some kind of check to see if samba is running as a DC. Â An ugly workaround is to comment out line 32.
For complete testing, here's a partial smb.conf that seems to turn on a Samba 4 domain controller.
[global]Â Â Â Â netbios name = DC1Â Â Â Â realm = MYDOMAIN.COMÂ Â Â Â workgroup = MYDOMAINÂ Â Â Â dns forwarder = 192.168.1.1Â Â server role = active directory domain controller
[netlogon]    path = /var/lib/samba/netlogon    read only = No
[sysvol]    path = /var/lib/samba/sysvol    read only = No
--- System information. ---Architecture:Â Kernel: Â Â Â Linux 4.9.0-3-amd64
Debian Release: 9.0 500 unstable     ftp.us.debian.org  500 testing     security.debian.org  500 testing     ftp.us.debian.org  500 jessie      apt.puppetlabs.comÂ
--- Package information. ---Depends                (Version) | Installed==============================================-+-=======================lsb-base               (>= 3.0-6) | 9.20161125samba-common         (= 2:4.5.8+dfsg-2) | 2:4.5.8+dfsg-2samba-common-bin       (= 2:4.5.8+dfsg-2) | 2:4.5.8+dfsg-2init-system-helpers         (>= 1.18~) | 1.48libbsd0               (>= 0.3.0) | 0.8.3-1libc6                 (>= 2.14) | 2.24-10libldap-2.4-2            (>= 2.4.7) | 2.4.44+dfsg-4+b1libpopt0               (>= 1.14) | 1.16-10+b2libtalloc2        (>= 2.0.4~git20101213) | 2.1.8-1libtdb1         (>= 1.2.7+git20101214) | 1.3.11-2libtevent0             (>= 0.9.25) | 0.9.31-1libwbclient0         (= 2:4.5.8+dfsg-2) | 2:4.5.8+dfsg-2samba-libs          (= 2:4.5.8+dfsg-2) | 2:4.5.8+dfsg-2
Package's Recommends field is empty.
Suggests       (Version) | Installed=============================-+-===========libnss-winbind         | 2:4.5.8+dfsg-2libpam-winbind         |Â
--- Please enter the report below this line. ---If you configure /etc/samba/smb.conf as a Samba 4 domain controller, then winbind updates/installs break. Â
winbind.postinst unconditionally attempts to restart the winbind service. Â Any attempts to start winbind while samba is running in DC mode fail. Â My understanding is when running as a domain controller, samba controls winbind as a child process. Â Maybe I'm wrong about that.
It seems like line 32 in /var/lib/dpkg/info/winbind.postinst needs some kind of check to see if samba is running as a DC. Â An ugly workaround is to comment out line 32.
For complete testing, here's a partial smb.conf that seems to turn on a Samba 4 domain controller.
[global]Â Â Â Â netbios name = DC1Â Â Â Â realm = MYDOMAIN.COMÂ Â Â Â workgroup = MYDOMAINÂ Â Â Â dns forwarder = 192.168.1.1Â Â server role = active directory domain controller
[netlogon]    path = /var/lib/samba/netlogon    read only = No
[sysvol]    path = /var/lib/samba/sysvol    read only = No
--- System information. ---Architecture:Â Kernel: Â Â Â Linux 4.9.0-3-amd64
Debian Release: 9.0 500 unstable     ftp.us.debian.org  500 testing     security.debian.org  500 testing     ftp.us.debian.org  500 jessie      apt.puppetlabs.comÂ
--- Package information. ---Depends                (Version) | Installed==============================================-+-=======================lsb-base               (>= 3.0-6) | 9.20161125samba-common         (= 2:4.5.8+dfsg-2) | 2:4.5.8+dfsg-2samba-common-bin       (= 2:4.5.8+dfsg-2) | 2:4.5.8+dfsg-2init-system-helpers         (>= 1.18~) | 1.48libbsd0               (>= 0.3.0) | 0.8.3-1libc6                 (>= 2.14) | 2.24-10libldap-2.4-2            (>= 2.4.7) | 2.4.44+dfsg-4+b1libpopt0               (>= 1.14) | 1.16-10+b2libtalloc2        (>= 2.0.4~git20101213) | 2.1.8-1libtdb1         (>= 1.2.7+git20101214) | 1.3.11-2libtevent0             (>= 0.9.25) | 0.9.31-1libwbclient0         (= 2:4.5.8+dfsg-2) | 2:4.5.8+dfsg-2samba-libs          (= 2:4.5.8+dfsg-2) | 2:4.5.8+dfsg-2
Package's Recommends field is empty.
Suggests       (Version) | Installed=============================-+-===========libnss-winbind         | 2:4.5.8+dfsg-2libpam-winbind         |Â