** Description changed:
[Impact]
When attempting to load the sss.so module, on a Bionic box running
samba-* on 4.7 and sssd-* 1.16.1, one sees the following in syslog:
winbindd[13099]: load_module_absolute_path: Module
'/usr/lib/x86_64-linux-gnu/samba/idmap/sss.so' loaded
winbindd[13099]: Failed to register idmap module.
winbindd[13099]: The module was compiled against
SMB_IDMAP_INTERFACE_VERSION 5,
winbindd[13099]: current SMB_IDMAP_INTERFACE_VERSION is 6.
This issue has been reported upstream, and made it into 1.16.2+ version
of sssd, but not into 1.16.1, which is currently found in Bionic.
[Test Case]
* sudo apt update
* sudo apt install sssd winbind
* Create this /etc/samba/smb.conf:
[global]
log file = /var/log/samba/log.%m
map to guest = Bad User
max log size = 1000
panic action = /usr/share/samba/panic-action %d
server role = standalone server
server string = %h server (Samba, Ubuntu)
syslog = 0
idmap config * : backend = sss
idmap config * : range = 200000-2147483647
* sudo systemctl restart winbind
Run this command to trigger the loading of the sss module. It will fail
because, among other reasons, this machine is not part of a domain, but that's
fine:
# wbinfo --allocate-uid
failed to call wbcAllocateUid: WBC_ERR_DOMAIN_NOT_FOUND
Could not allocate a uid
Now /var/log/samba/log.winbindd-idmap will contain:
[2019/06/27 17:45:18.420790, 0]
../source3/winbindd/idmap.c:328(smb_register_idmap)
Failed to register idmap module.
The module was compiled against SMB_IDMAP_INTERFACE_VERSION 5,
current SMB_IDMAP_INTERFACE_VERSION is 6.
Please recompile against the current version of samba!
[2019/06/27 17:45:18.421110, 0]
../lib/util/modules.c:173(load_module_absolute_path)
load_module_absolute_path: Module
'/usr/lib/x86_64-linux-gnu/samba/idmap/sss.so' initialization failed: {Wrong
Type} There is a mismatch between the type of object that is required by the
requested operation and the type of object that is specified in the request.
This confirms the bug.
[Regression Potential]
- [Other informations]
+ This patch changed the Version to 6 for winbindd to loads the backend
+ properly, I don't expect any problem, but if there is, we will need to
+ fix then, cause winbindd needs requires version "6".
+
+ # Feedback from other linux distro (arch linux):
+ https://bugs.archlinux.org/task/56723
+ "sssd is stable and I could not identify any side-effects."
+
+ [Other information]
*Cosmic and late aren't impacted.
*Xenial is not impacted, as it doesn't uses version "6"
-----
samba-4.3.11+dfsg/source3/include/idmap.h:
#define SMB_IDMAP_INTERFACE_VERSION 5
-----
*Upstream:
https://pagure.io/SSSD/sssd/issue/3741
https://github.com/SSSD/sssd/pull/572
https://github.com/SSSD/sssd/commit/b78fced9263a2aa2d229879a868825aa7ebe19ac
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1834507
Title:
Attempting to load sss.so in Bionic fails due to
SMB_IDMAP_INTERFACE_VERSION mismatch
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1834507/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs