Bug 1576027

Summary: smbclient - libwbclient.so.0 not found
Product: Red Hat Enterprise Linux 7 Reporter: MarkS <mark>
Component: sambaAssignee: Andreas Schneider <asn>
Status: CLOSED NOTABUG QA Contact: qe-baseos-daemons
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.5CC: asn, gdeschner, jarrpa, mark
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-09 15:56:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description MarkS 2018-05-08 15:18:37 UTC
Description of problem:
Running RHEL Workstation 7.5, fully patched. Attempting to run "smbclient" tools fails as it cannot find one of its libraries.

Version-Release number of selected component (if applicable):
samba-client-4.7.1-6.el7.x86_64
libwbclient-4.7.1-6.el7.x86_64

How reproducible:
I did attempt to reinstall both packages to see if it was a broken install. I am unsure exactly when the break occurred as I do not regularly use smbclient.

Steps to Reproduce:
1. /usr/bin/smbclient

Actual results:
/usr/bin/smbclient: error while loading shared libraries: libwbclient.so.0: cannot open shared object file: No such file or directory

Expected results:
Usage: smbclient [-?EgBVNkPeC] ....

Additional info:
It seems this is just a search path issue.

1. echo "/usr/lib64/samba/wbclient" >>/etc/ld.so.conf.d/samba-fix.conf
2. ldconfig
3. smbclient

Works

Comment 2 Andreas Schneider 2018-05-09 14:55:41 UTC
Please check where the symlink ob libwbclient is pointing to:

krikkit:~ # ll /usr/lib64/libwbclient.so.0*
lrwxrwxrwx 1 root root 19 May  9 16:53 /usr/lib64/libwbclient.so.0 -> libwbclient.so.0.14                                                                                
lrwxrwxrwx 1 root root 40 May  9 16:53 /usr/lib64/libwbclient.so.0.14 -> /etc/alternatives/libwbclient.so.0.14-64                                                        
krikkit:~ # ll /etc/alternatives/libwbclient.so.0.14-64
lrwxrwxrwx 1 root root 45 May  9 16:53 /etc/alternatives/libwbclient.so.0.14-64 -> /usr/lib64/samba/wbclient/libwbclient.so.0.14

Make sure sssd-libwbclient is not installed and reinstall libwbclient, then the symlink should be setup correctly.

Comment 3 MarkS 2018-05-09 15:34:55 UTC
Many thanks for the quick response, you were correct to point to sssd-lbwbclient as my issue. I removed it and reinstalled libwbclient, after which everything is functional again.

# ls -l /usr/lib64/libwbclient.so.0* /etc/alternatives/libwbclient.so.0.14-64 
lrwxrwxrwx. 1 root root 45 May  9 16:27 /etc/alternatives/libwbclient.so.0.14-64 -> /usr/lib64/samba/wbclient/libwbclient.so.0.14
lrwxrwxrwx. 1 root root 19 May  9 16:27 /usr/lib64/libwbclient.so.0 -> libwbclient.so.0.14
lrwxrwxrwx. 1 root root 40 May  9 16:27 /usr/lib64/libwbclient.so.0.14 -> /etc/alternatives/libwbclient.so.0.14-64

# alternatives --list | grep samba
libwbclient.so.0.14-64	auto	/usr/lib64/samba/wbclient/libwbclient.so.0.14