Package: nslcd
Version: 0.7.15+squeeze2
During installation the /var/lib/dpkg/info/nslcd.config script tries
to guess the LDAP search base from the systems domain name:
37 # if the ldap-base value doesn't seem to be preseeded, try to use
the
38 # domain name to build the default base
39 if [ -n "$domain" ]
40 then
41 searchbase=`echo "$domain" | sed 's/^/dc=/;s/\./,dc=/'` || true
42 db_set nslcd/ldap-base "$searchbase"
43 fi
This works nicely unless your domain hase more than one dot.
foo.bar works
foo.bar.baz fails
Reason is a missing "global" option on the sed search-and-replace command.
# echo "foo.bar" | sed 's/^/dc=/;s/\./,dc=/'
dc=foo,dc=bar
# echo "foo.bar.baz" | sed 's/^/dc=/;s/\./,dc=/'
dc=foo,dc=bar.baz
# echo "foo.bar.baz" | sed 's/^/dc=/;s/\./,dc=/g'
dc=foo,dc=bar,dc=baz
cheers
-henrik
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]