Skip to content
Commits on Source (2)
debian-edu-config (2.10.62) unstable; urgency=medium
* get-ldap-ltsp-config: Fix detection of MAC address.
* get-ldap-ltsp-config: Fix extraction of ltspConfig from LDAP.
* update-hostname-from-ip: Always print hostname if -n is used.
* Add myself as Uploader.
......
......@@ -76,7 +76,7 @@ HOSTNAME=$(/usr/sbin/update-hostname-from-ip -m -n)
setup_from_ldap() {
filter="(&(ltspConfig=*)$1)"
config="$(ldapsearch -h "$LDAP_HOST" -b "$BASE_DN" -x "$filter" ltspConfig | \
awk '/^ltspConfig: [^=]*=[^;]*$/ { print $2 }')"
grep -Po '(?<=^ltspConfig: ).*')"
if [ "$config" ] ; then
if eval "$config" ; then
echo "$config" >> $cachefile
......