[debian-edu-commits] [Git][debian-edu/debian-edu-config][master] Adjust d/changelog entry and comment in sbin/update-hostname-from-ip.
WolfgangSchweer
gitlab at salsa.debian.org
Wed Jun 20 12:00:11 BST 2018
WolfgangSchweer pushed to branch master at Debian Edu / debian-edu-config
Commits:
6fda9ffd by Wolfgang Schweer at 2018-06-20T12:49:23+02:00
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.
- - - - -
2 changed files:
- debian/changelog
- sbin/update-hostname-from-ip
Changes:
=====================================
debian/changelog
=====================================
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,10 +1,11 @@
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 at arcor.de> Sun, 17 Jun 2018 12:42:08 +0200
=====================================
sbin/update-hostname-from-ip
=====================================
--- a/sbin/update-hostname-from-ip
+++ b/sbin/update-hostname-from-ip
@@ -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";
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/commit/6fda9ffda0e17e897d1ec7ac5bbaf50aa0cb8a4f
--
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/commit/6fda9ffda0e17e897d1ec7ac5bbaf50aa0cb8a4f
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-edu-commits/attachments/20180620/133541b6/attachment-0001.html>
More information about the debian-edu-commits
mailing list