lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1972 - debian/nss-pam-ldapd/branches/experimental/debian

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd commit: r1972 - debian/nss-pam-ldapd/branches/experimental/debian



Author: arthur
Date: Mon May 20 17:24:10 2013
New Revision: 1972
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1972&view=revision

Log:
do not offer to remove entries from nsswitch.conf when switching between module 
implementation or architecture

Modified:
   debian/nss-pam-ldapd/branches/experimental/debian/changelog
   debian/nss-pam-ldapd/branches/experimental/debian/libnss-ldapd.postrm

Modified: debian/nss-pam-ldapd/branches/experimental/debian/changelog
==============================================================================
--- debian/nss-pam-ldapd/branches/experimental/debian/changelog Sun May 12 
12:05:50 2013        (r1971)
+++ debian/nss-pam-ldapd/branches/experimental/debian/changelog Mon May 20 
17:24:10 2013        (r1972)
@@ -40,8 +40,10 @@
     be shared between nslcd, pynslcd and potentially nssov
   * introduce a nslcd-utils package that contains the getent.ldap and
     chsh.ldap utilities
+  * libnss-ldapd.postrm: do not offer to remove entries from nsswitch.conf
+    when switching between module implementation or architecture
 
- -- Arthur de Jong <adejong@debian.org>  Sat, 11 May 2013 17:15:00 +0200
+ -- Arthur de Jong <adejong@debian.org>  Mon, 20 May 2013 17:15:00 +0200
 
 nss-pam-ldapd (0.8.13-1) unstable; urgency=low
 

Modified: debian/nss-pam-ldapd/branches/experimental/debian/libnss-ldapd.postrm
==============================================================================
--- debian/nss-pam-ldapd/branches/experimental/debian/libnss-ldapd.postrm       
Sun May 12 12:05:50 2013        (r1971)
+++ debian/nss-pam-ldapd/branches/experimental/debian/libnss-ldapd.postrm       
Mon May 20 17:24:10 2013        (r1972)
@@ -47,8 +47,10 @@
   return 0
 }
 
-# offer to remove ldap from nsswitch.conf
-if ( [ "$1" = "remove" ] || [ "$1" = "purge" ] )
+# offer to remove ldap from nsswitch.conf unless an LDAP NSS module
+# remains present (e.g. when switching between module implementation
+# or architecture)
+if ( [ "$1" = "remove" ] || [ "$1" = "purge" ] ) && ! [ -e 
/lib/*/libnss_ldap.so.2 ]
 then
   # check which naming services are configured
   configured=`nss_list_configured`
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/