Public bug reported: I recently upgraded from 20.04 to 22.04 and as a part of the upgrade, the dpkg configuration for nss-pam-ldapd prompted to configure ldap in nsswitch.conf. I selected "passwd" only, which is correct for my use case.
Upon rebooting, I discovered that dpkg had modified my nsswitch.conf file in an unexpected way, which broke login authorities until I was able to log in with a backup admin account. The module which broke is a custom NSS module which I'll refer to here as "mineldap". This is not the exact name, but my module does end with "...ldap". Before updating, my nsswitch file: passwd: files mineldap ldap systemd group: files mineldap systemd After the reconfiguration. Note the packaging tool incorrectly deletes "ldap " from the "group:" entry, creating an invalid entry: passwd: files mineldap ldap systemd group: files minesystemd ProblemType: Bug DistroRelease: Ubuntu 22.04 Package: nslcd 0.9.12-2 ProcVersionSignature: Ubuntu 5.15.0-119.129-generic 5.15.160 Uname: Linux 5.15.0-119-generic x86_64 ApportVersion: 2.20.11-0ubuntu82.6 Architecture: amd64 CasperMD5CheckResult: unknown CurrentDesktop: ubuntu:GNOME Date: Wed Sep 4 12:59:23 2024 InstallationDate: Installed on 2020-10-28 (1407 days ago) InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423) SourcePackage: nss-pam-ldapd UpgradeStatus: Upgraded to jammy on 2024-09-04 (0 days ago) ** Affects: nss-pam-ldapd (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug jammy -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2078967 Title: Package reconfigure can break NSS for unrelated modules To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nss-pam-ldapd/+bug/2078967/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs