[Bug 1677329] Re: libpam-winbind: unable to dlopen

Andrew Reis drew_reis at gensler.com
Mon Jun 26 16:52:57 UTC 2017


Does anyone have an update on this?

Confirmed still a problem on Fresh build:
Dell R410

$ uname -a
Linux HOSTNAME 4.10.0-24-generic #28-Ubuntu SMP Wed Jun 14 08:14:34 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 17.04
Release:        17.04
Codename:       zesty


$ dpkg -l | grep 'samba\|winbind\|nss' | awk '{print $2":"$3}'
libnss-resolve:amd64:232-21ubuntu4
libnss-winbind:amd64:2:4.5.8+dfsg-0ubuntu0.17.04.2
libnss3:amd64:2:3.28.4-0ubuntu0.17.04.2
libpam-winbind:amd64:2:4.5.8+dfsg-0ubuntu0.17.04.2
libwbclient0:amd64:2:4.5.8+dfsg-0ubuntu0.17.04.2
python-samba:2:4.5.8+dfsg-0ubuntu0.17.04.2
samba:2:4.5.8+dfsg-0ubuntu0.17.04.2
samba-common:2:4.5.8+dfsg-0ubuntu0.17.04.2
samba-common-bin:2:4.5.8+dfsg-0ubuntu0.17.04.2
samba-dsdb-modules:2:4.5.8+dfsg-0ubuntu0.17.04.2
samba-libs:amd64:2:4.5.8+dfsg-0ubuntu0.17.04.2
samba-vfs-modules:2:4.5.8+dfsg-0ubuntu0.17.04.2
winbind:2:4.5.8+dfsg-0ubuntu0.17.04.2

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1677329

Title:
  libpam-winbind: unable to dlopen

Status in samba package in Ubuntu:
  Fix Released
Status in samba source package in Zesty:
  In Progress

Bug description:
  [Impact]

  The pam_winbind.so module is unusable in zesty. It won't load because
  of missing symbols:

  Jun 21 13:17:05 zesty-pamwinbind-1677329 systemd: PAM unable to
  dlopen(pam_winbind.so): /lib/security/pam_winbind.so: cannot open
  shared object file: No such file or directory

  This is due to the (re)introduction of patch fix-1584485.patch which
  changes the way this module is built, trying to statically link some
  libraries. That linking was incorrectly done.

  The patch was subsequently removed, but later added back again by
  mistake during a sync.

  A new version of the patch exists
  (https://code.launchpad.net/~ahasenack/ubuntu/+source/samba/+git/samba/+merge/323767),
  but upstream (Samba and Debian) isn't very fond of such a change and
  asked me to submit it for discussion to the samba-technical mailing
  list (https://lists.samba.org/archive/samba-
  technical/2017-June/121139.html).

  That was done, but since this could take some time, we decided it's
  best to revert the patch again.

  [Test Case]

  In a zesty machine/container:
   * sudo apt install libpam-winbind winbind samba
   * tail -f /var/log/auth.log
   * perform a login on this machine. Via ssh, for example
   * the broken version will log this:
  Jun 21 13:17:05 zesty-pamwinbind-1677329 systemd: PAM unable to dlopen(pam_winbind.so): /lib/security/pam_winbind.so: cannot open shared object file: No such file or directory
   * The fixed version will load pam_winbind.so just fine, but won't log anything (unless you fully setup winbind). It's easier to add "debug" to the pam_winbind.so lines in /etc/pam.d/common-* files and repeat the login, then you get to see it being loaded in the logs:
  Jun 21 17:48:52 zesty-pamwinbind-1677329 sshd[18052]: pam_winbind(sshd:session): [pamh: 0x56460f355740] ENTER: pam_sm_open_session (flags: 0x0000)
  Jun 21 17:48:52 zesty-pamwinbind-1677329 sshd[18052]: pam_winbind(sshd:session): [pamh: 0x56460f355740] LEAVE: pam_sm_open_session returning 0 (PAM_SUCCESS)

  
  [Regression Potential]

  This reversal has been done before and worked. Right now, the biggest
  regression potential is to add the broken patch back again.

  Reversing this patch will also reintroduce bug #1584485, but I think
  the configuration that leads to that bug is asking for trouble and I
  stated as such in a comment
  (https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1584485/comments/43).
  "winbind" should be listed after "files" or "compat", not before.

  That being said, it is my opinion that having a working pam_winbind
  module benefits more users than the amount of users that could be
  affected by the particular configuration that leads to #1584485.

  [Other Info]

  Sorry for keeping both bugs open (#1644428 and #1677329), but the
  history on this issue is a bit complicated with multiple SRUs and
  regressions.

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



More information about the Ubuntu-sponsors mailing list