Commit 6fda9ffd authored by Wolfgang Schweer's avatar Wolfgang Schweer
Browse files

Adjust d/changelog entry and comment in sbin/update-hostname-from-ip.

Keep NetBIOS compliant hostnames and explain why this is still useful after
the related bugs (samba-common-bin, caja-share) have been fixed.
parent f5292cfb
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
debian-edu-config (2.10.29) UNRELEASED; urgency=medium

  * Generate netbios compliant hostname (workaround for Samba bug #900908).
    The MATE desktop pulls in 'samba-common-bin' via 'caja-share' causing
    installations (except main-server) with 'desktop=mate' to break. Instead
    of e.g. 'auto-mac-11-22-33-44-55-66', now 'am-112233445566' is generated.
    (Closes: #900629).
  * Generate NetBIOS compliant hostname; this allows one to keep the hostname
    in case the MATE desktop is configured to use file sharing via Samba.
    Same applies if a roaming workstation is configured to connect to an
    active directory DC (via tools/setup-ad-client).
    Instead of e.g. 'auto-mac-11-22-33-44-55-66', now 'am-112233445566' is
    generated. (Closes: #900629).

 -- Wolfgang Schweer <wschweer@arcor.de>  Sun, 17 Jun 2018 12:42:08 +0200

+1 −2
Original line number Diff line number Diff line
@@ -26,8 +26,7 @@ ether2hostname() {
    else
	mac=$(ifconfig $INTERFACE | awk '/ether/ { print $2; exit}')
    fi
    # FIXME: generate netbios compliant hostname; workaround Samba bug #900908.
    # Needed because MATE desktop pulls in 'samba-common-bin' via 'caja-share'.
    # Generate NetBIOS compliant hostname.
    mac=$(echo $mac | sed 's/[^0-9a-f-]//gi')
    if [ "$mac" ] ; then
       fqdn="am-$mac.$DNSDOMAIN";