← Back to team overview

enterprise-support team mailing list archive

[Bug 1980246] Re: Doesn't update /etc/nsswitch.conf when using winbind

 

This was fixed in debians samba package 4.17.3-3[1], by having the
libnss-winbind postinst handle /etc/nsswitch.conf:

if [ "$1" = configure ] && [ -z "$2" ]; then
    echo "First installation detected, adding winbind to /etc/nsswitch.conf..."
    if ! [ -e /etc/nsswitch.conf ]; then
        echo "Could not find /etc/nsswitch.conf."
    else
        sed -r -i \
          -e  '/^(passwd|group):.*[[:space:]]winbind\b/b' \
          -e 's/^(passwd|group):.*/& winbind/' \
          /etc/nsswitch.conf
    fi
fi

This change is available in lunar and later.
1. https://launchpad.net/debian/+source/samba/2:4.17.3+dfsg-3
2. https://git.launchpad.net/ubuntu/+source/samba/tree/debian/libnss-winbind.postinst?h=import/2%254.17.3%2bdfsg-3


** Package changed: realmd (Ubuntu) => samba (Ubuntu)

** Also affects: samba (Ubuntu Lunar)
   Importance: Undecided
       Status: New

** Changed in: samba (Ubuntu Lunar)
       Status: New => Fix Released

** Changed in: samba (Ubuntu)
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Server/Client Support Team, which is subscribed to samba in Ubuntu.
Matching subscriptions: Ubuntu Server/Client Support Team
https://bugs.launchpad.net/bugs/1980246

Title:
  Doesn't update /etc/nsswitch.conf when using winbind

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1980246/+subscriptions