diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2011-12-10 13:29:29 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2011-12-10 13:29:29 +0000 |
commit | fb2ea1206f8c9cd5e76b8699569678db8ab07d15 (patch) | |
tree | 7d8a36da71daa9fa55e7f3531bc94062977eeeb4 | |
parent | 2b3357edc1017336d3909500404e10f4e61d67bd (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.config | 3 | ||||
-rw-r--r-- | debian/libnss-ldapd.postrm | 3 |
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 |