libnss-sss postinst script puts "automounter: sss" in nsswitch.conf; should be "automount: sss"

Bug #1873752 reported by Dara Poon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
autofs
Invalid
Undecided
Unassigned
sssd (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

In package libnss-sss_2.2.3-2 (Ubuntu 20.04 focal beta), the postinst script does:

insert_nss_entry() {
    log "Checking NSS setup..."
    # abort if /etc/nsswitch.conf does not exist
    if ! [ -e /etc/nsswitch.conf ]; then
        log "Could not find /etc/nsswitch.conf."
        return
    fi
    # append 'sss' to the end of the line if it's not found already
    sed -i --regexp-extended '
      /^(passwd|group|shadow|netgroup|services|automounter):/ {
        /\bsss\b/! s/$/ sss/
      }
    ' /etc/nsswitch.conf
    # and add a new entry for automount if it's not there
    if ! grep -q automounter /etc/nsswitch.conf; then
        log "Adding an entry for automounter."
        echo "automounter: sss" >> /etc/nsswitch.conf
    fi
}

However, according to https://docs.pagure.org/SSSD.sssd/design_pages/autofs_integration.html the entry should be "automount: sss". As a result, autofs reads an empty automount map.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

that's a nice typo, will fix in debian

Changed in sssd (Ubuntu):
status: New → Confirmed
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

and synced to focal, waiting for review

Changed in autofs:
status: New → Invalid
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package sssd - 2.2.3-3

---------------
sssd (2.2.3-3) unstable; urgency=medium

  * libnss-sss: Fix a typo in adding the NSS entry for automount.
    (LP: #1873752)
  * control, watch: Update upstream url to github.

 -- Timo Aaltonen <email address hidden> Mon, 20 Apr 2020 17:52:18 +0300

Changed in sssd (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.