On Fri, 2009-04-10 at 17:04 +0200, Sergio Gelato wrote: > The postinst script for this package edits /etc/nsswitch.conf based on > the answers to debconf questions. > > The changes should be undone when the package is removed (unless perhaps > it is being replaced with libnss-ldap), but currently this is not happening. > > This is substantially the same issue as bug #406198 against libnss-mdns.
Thanks for your bugreport. I think most NSS calls should handle missing NSS modules gracefully (hostname lookups may be the exception here because it's a bit of a mess). What I'm thinking of doing is that on remove (or purge maybe?), ask the user (if debconf is available) whether the entries should be removed and if debconf isn't available issue a big fat warning message. I'm a bit reluctant to automatically remove stuff from nsswitch.conf because the admin, when he installed the package, indicated that nsswitch.conf should be edited or the admin may have edited it manually to include ldap lookups. Any ideas on that approach? -- -- arthur - [email protected] - http://people.debian.org/~adejong --
signature.asc
Description: This is a digitally signed message part

