Package: libpam-ldap
Version: 186-1
Severity: important
Dear Maintainer,
FYI, I was working on backporting libpam-ldap-186 for our local
jessie/wheezy machines to address the issues described in bug #844665
and found that the new package organization dropped the Debian tweaks
that cause it to read from /etc/pam_ldap.conf by default, instead it
reads from /etc/ldap.conf, thus breaking existing installs. I didn't
see any mention of a config file location redirection or warning on
upgrade. This could cause a lot of problems for folks on upgrade once
stretch is released.
Attached is a small tweak to the debian/rules file to reinstate the old
behavior.
Let me know if you have any questions.
Thanks,
Brian
-- System Information:
Debian Release: 8.6
APT prefers stable
APT policy: (500, 'stable'), (120, 'testing'), (110, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
Versions of packages libpam-ldap depends on:
ii debconf [debconf-2.0] 1.5.56
ii libc6 2.19-18+deb8u6
ii libldap-2.4-2 2.4.40+dfsg-1+deb8u2
ii libpam-runtime 1.1.8-3.1+deb8u1
ii libpam0g 1.1.8-3.1+deb8u1+b1
libpam-ldap recommends no packages.
Versions of packages libpam-ldap suggests:
ii libnss-ldap 265-3+b1
-- debconf information excluded
diff -u -ru libpam-ldap-186/debian/changelog libpam-ldap-186.cae/debian/changelog
--- libpam-ldap-186/debian/changelog 2016-04-09 16:14:51.000000000 -0500
+++ libpam-ldap-186.cae/debian/changelog 2016-11-17 15:47:12.175824737 -0600
@@ -1,3 +1,12 @@
+libpam-ldap (186-1+caejessie1) cae-jessie-backports; urgency=medium
+
+ * Non-maintainer upload.
+ * Backporting for jessie.
+ * Also update debian/rules to use the old /etc/pam_ldap.conf file by default
+ instead of /etc/ldap.conf
+
+ -- Brian Kroth <bpkr...@gmail.com> Fri, 28 Oct 2016 17:13:57 -0500
+
libpam-ldap (186-1) unstable; urgency=medium
* New upstream release
diff -u -ru libpam-ldap-186/debian/rules libpam-ldap-186.cae/debian/rules
--- libpam-ldap-186/debian/rules 2016-04-04 00:47:35.000000000 -0500
+++ libpam-ldap-186.cae/debian/rules 2016-11-17 15:04:38.363947140 -0600
@@ -7,4 +7,21 @@
override_dh_auto_configure:
dh_auto_configure -- --libdir=/lib/$(DEB_HOST_MULTIARCH) \
- --with-ldap-lib=openldap
+ --with-ldap-lib=openldap \
+ --with-ldap-conf-file=/etc/pam_ldap.conf \
+ --with-ldap-secret-file=/etc/pam_ldap.secret
+
+binary-post-install/libpam-ldap::
+ # rename man page
+ mv $(MY_INSTR_DIR)/usr/share/man/man5/pam_ldap.5 \
+ $(MY_INSTR_DIR)/usr/share/man/man5/pam_ldap.conf.5
+ # change all references from /etc/ldap.{conf,secret} to /etc/pam_ldap.{conf,secret}
+ for file in $(MY_INSTR_DIR)/usr/share/man/man5/pam_ldap.conf.5 \
+ $(MY_INSTR_DIR)/usr/share/libpam-ldap/ldap.conf \
+ $(MY_INSTR_DIR)/usr/share/doc/libpam-ldap/examples/chfn \
+ $(MY_INSTR_DIR)/usr/share/doc/libpam-ldap/examples/chsh ; do \
+ sed -e 's,ldap.conf,pam_ldap.conf,' \
+ -e 's,ldap.secret,pam_ldap.secret,' \
+ < $$file > $$file-sed; \
+ mv $$file-sed $$file; \
+ done