Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2010-08-17 18:52:02 +0200
committerArthur de Jong <arthur@arthurdejong.org>2010-08-17 18:52:02 +0200
commit63f6426fb6c9baf8ba823d4c9a31bfc61c23a1a9 (patch)
tree875e4e3c2b3b2feda8ebdf6043136fc657fbf600 /debian
parenta11e6c251e11c8c5f216135eb73c358f98a45070 (diff)
only offer to fix nsswitch.conf if PAM has been converted with pam-auth-update
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1177 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'debian')
-rw-r--r--debian/libpam-ldapd.postinst4
1 files changed, 3 insertions, 1 deletions
diff --git a/debian/libpam-ldapd.postinst b/debian/libpam-ldapd.postinst
index 026c2e9..9d62b4f 100644
--- a/debian/libpam-ldapd.postinst
+++ b/debian/libpam-ldapd.postinst
@@ -34,8 +34,10 @@ nss_enable()
# if /etc/nsswitch.conf contains passwd: ..ldap but not shadow: ...ldap
# warn the user that this will not work and offer to fix it
+# (only do this if it seems we have switched to pam-auth-update)
if grep -q '^passwd:.*ldap' /etc/nsswitch.conf && \
- ! grep -q '^shadow:.*ldap' /etc/nsswitch.conf
+ ! grep -q '^shadow:.*ldap' /etc/nsswitch.conf && \
+ grep -q pam-auth-update /etc/pam.d/common-auth
then
if db_input critical libpam-ldapd/enable_shadow
then