summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2011-12-10 13:29:29 +0000
committerArthur de Jong <arthur@arthurdejong.org>2011-12-10 13:29:29 +0000
commitfb2ea1206f8c9cd5e76b8699569678db8ab07d15 (patch)
tree7d8a36da71daa9fa55e7f3531bc94062977eeeb4
parent2b3357edc1017336d3909500404e10f4e61d67bd (diff)
ensure that the output of nss_list_configured() is space separated
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1564 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r--debian/libnss-ldapd.config3
-rw-r--r--debian/libnss-ldapd.postrm3
2 files changed, 4 insertions, 2 deletions
diff --git a/debian/libnss-ldapd.config b/debian/libnss-ldapd.config
index 0f2f477..c709c06 100644
--- a/debian/libnss-ldapd.config
+++ b/debian/libnss-ldapd.config
@@ -19,7 +19,8 @@ nss_list_configured()
{
sed -n \
's/^[[:space:]]*\([a-z]*\)[[:space:]]*:.*[[:space:]]ldap\([[:space:]].*\)\?/\1/p' \
- /etc/nsswitch.conf
+ /etc/nsswitch.conf \
+ | xargs
}
# find name services that currently use LDAP and separate by commas
diff --git a/debian/libnss-ldapd.postrm b/debian/libnss-ldapd.postrm
index d66833d..9000528 100644
--- a/debian/libnss-ldapd.postrm
+++ b/debian/libnss-ldapd.postrm
@@ -8,7 +8,8 @@ nss_list_configured()
{
sed -n \
's/^[[:space:]]*\([a-z]*\)[[:space:]]*:.*[[:space:]]ldap\([[:space:]].*\)\?/\1/p' \
- /etc/nsswitch.conf
+ /etc/nsswitch.conf \
+ | xargs
}
# check whether the name is configure to do lookups through