Package: libnss-ldap Version: 251-7 Followup-For: Bug #400192
I believe this may be fixed with the attached patch... tell me what you think... -- System Information: Debian Release: 4.0 APT prefers testing APT policy: (500, 'testing'), (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-3-686 Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages libnss-ldap depends on: ii debconf [debconf-2.0] 1.5.8 Debian configuration management sy ii libc6 2.3.6.ds1-8 GNU C Library: Shared libraries ii libkrb53 1.4.4-4 MIT Kerberos runtime libraries ii libldap2 2.1.30-13+b1 OpenLDAP libraries Versions of packages libnss-ldap recommends: ii libpam-ldap 180-1.4 Pluggable Authentication Module al ii nscd 2.3.6.ds1-8 GNU C Library: Name Service Cache -- debconf information excluded
--- libnss-ldap.postinst.orig 2006-12-13 19:07:41.000000000 +0100 +++ libnss-ldap.postinst 2006-12-13 19:07:56.000000000 +0100 @@ -38,7 +38,7 @@ # i really need a better way to do this... # currently we replace only the first match, we need a better # way of dealing with multiple hits. - value="$value" parameter="$parameter" perl -i -p -e 's/^# *\Q$ENV{"parameter"}\E .*/$ENV{"parameter"} $ENV{"value"}/i + value="$value" parameter="$parameter" perl -i -p -e 's/^#? *\Q$ENV{"parameter"}\E .*/$ENV{"parameter"} $ENV{"value"}/i and $match=1 unless ($match)' $CONFFILE fi }