Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
get-ldap-ltsp-config: Fix extraction of ltspConfig from LDAP.
· c67e1808
Dominik George
authored
Mar 01, 2019
lts.conf values can very well contain spaces.
c67e1808
Update changelog.
· 4340da45
Dominik George
authored
Mar 01, 2019
4340da45
Show whitespace changes
Inline
Side-by-side
debian/changelog
View file @
4340da45
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.
...
...
share/ltsp/get-ldap-ltsp-config
View file @
4340da45
...
...
@@ -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
...
...