[Pkg-samba-maint] Bug#941492: samba: libwbclient-sssd package installation does not re-create expected symlink to libwbclient.so.0
Eric Desrochers
eric.desrochers at canonical.com
Tue Oct 1 15:11:52 BST 2019
Source: samba
Version: 2:4.10.8+dfsg-1
Severity: normal
Dear Maintainer,
More details can be found in the Ubuntu LP bug:
https://launchpad.net/bugs/1844173
Original description:
----
[Issue]
The libwbclient-sssd package provides a libwbclient.so.0.14.0 library which enables winbind queries (i.e. wbinfo) to use sssd as a framework.
However, when libwbclient-sssd package is installed, the symlink to /usr/lib/x86_64-linux-gnu/libwbclient.so.0 is not recreated to point out to the /usr/lib/x86_64-linux-gnu/sssd/modules/libwbclient.so.0.14.0, thus not enabling such functionality until a manual procedure (re-symlinking) is made by the user.
I have inspected both ealier (xenial) and latest (eoan) packages, and none of them contain postinst/postuninstall scripts that would create/remove the expected symlinks, respectively.
It is unclear as of now if it *is* expected that the symlinks should be recreated by the user or else. There have been discussions [1] about this in the past, but they were closed with inconclusive comments. This bug is being opened to either have the packages' postinst/postuninstall scripts create/remove that symlink, or either to document the need of proceeding with such operation manually.
[Impact]
The use of features included in libwbclient-sssd's library are not usable until the symlink for libwbclient.so.0 is manually created.
[Reproducer]
Install sssd + winbind + dependencies.
Check the symlink of /usr/lib/x86_64-linux-gnu/libwbclient.so.0 points out to the libwbclient.so.0.14 library:
$ ll /usr/lib/x86_64-linux-gnu/libwbclient.so.0
lrwxrwxrwx 1 root root 19 May 23 12:06 /usr/lib/x86_64-linux-gnu/libwbclient.so.0 -> libwbclient.so.0.14
Install libwbclient-sssd.
Check the symlink of /usr/lib/x86_64-linux-gnu/libwbclient.so.0 still points out to the libwbclient.so.0.14 library:
$ ll /usr/lib/x86_64-linux-gnu/libwbclient.so.0
lrwxrwxrwx 1 root root 19 May 23 12:06 /usr/lib/x86_64-linux-gnu/libwbclient.so.0 -> libwbclient.so.0.14
[Workaround]
Using update-alternatives (either with --config or --install, pointing out to the /usr/lib/x86_64-linux-gnu/sssd/modules/libwbclient.so.0.14.0 library, enables the use of wbinfo + sssd.
---
The 'sssd' debian maintainer, proposed to fix this behaviour inside samba
just like Fedora did: https://src.fedoraproject.org/rpms/samba/blob/master/f/samba.spec
More information about the Pkg-samba-maint
mailing list