lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1555 - nss-pam-ldapd-0.7/debian

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

nss-pam-ldapd commit: r1555 - nss-pam-ldapd-0.7/debian



Author: arthur
Date: Fri Nov 18 14:02:07 2011
New Revision: 1555
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1555&view=revision

Log:
fix an issues where changes to /etc/nsswitch.conf outside of debconf were not 
picked up

Modified:
   nss-pam-ldapd-0.7/debian/libnss-ldapd.config

Modified: nss-pam-ldapd-0.7/debian/libnss-ldapd.config
==============================================================================
--- nss-pam-ldapd-0.7/debian/libnss-ldapd.config        Wed Oct 12 22:50:55 
2011        (r1554)
+++ nss-pam-ldapd-0.7/debian/libnss-ldapd.config        Fri Nov 18 14:02:07 
2011        (r1555)
@@ -14,11 +14,9 @@
 #
 
 # parse /etc/nsswitch.conf and see which services have ldap specified
-db_get libnss-ldapd/nsswitch
-if [ -z "$RET" ]
+configured=`sed -n 's/^\([a-z]*\):.*[[:space:]]ldap\([[:space:]].*\)\?/\1/p' 
/etc/nsswitch.conf`
+if [ -n "$configured" ]
 then
-  # find name services that currently use LDAP
-  configured=`sed -n 's/^\([a-z]*\):.*[[:space:]]ldap\([[:space:]].*\)\?/\1/p' 
/etc/nsswitch.conf`
   # separate by commas
   configured=`echo $configured | sed 's/ /, /g'`
   # store configured services
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/