[Samba] samba-tool issue

Rowland penny rpenny at samba.org
Mon May 31 17:02:42 UTC 2021


On 31/05/2021 17:24, Rommel Rodriguez Toirac via samba wrote:
> El 31 de mayo de 2021 11:50:22 GMT-04:00, Rowland penny via samba <samba at lists.samba.org> escribió:
>> On 31/05/2021 16:17, Rommel Rodriguez Toirac via samba wrote:
>>>    Hello all;
>>> I have some issue with samba4 ADDC in my network. I realized of it
>> today.
>>>    When I run the samba- tool command I have this:
>>>
>>> ___________
>>> root at gtmad1 samba]# samba-tool
>>> ERROR(<class 'ImportError'>): uncaught exception -
>> /usr/local/samba/lib/private/libcli-smb-common-samba4.so: version
>> `SAMBA_4.13.2' not found (required by
>> /usr/local/samba/lib64/python3.6/site-packages/samba/samba3/libsmb_samba_internal.cpython-36m-x86_64-linux-gnu.so)
>>>     File "/usr/local/samba/bin/samba-tool", line 45, in <module>
>>>       retval = cmd._run("samba-tool", subcommand, *args)
>>>     File
>> "/usr/local/samba/lib64/python3.6/site-packages/samba/netcmd/__init__.py",
>> line 259, in _run
>>>       cmd = self.subcommands[cmd_name]
>>>     File
>> "/usr/local/samba/lib64/python3.6/site-packages/samba/netcmd/main.py",
>> line 36, in getitem
>>>       fromlist=['cmd_%s' % attr]),
>>>     File
>> "/usr/local/samba/lib64/python3.6/site-packages/samba/netcmd/delegation.py",
>> line 23, in <module>
>>>       from samba import provision
>>>     File
>> "/usr/local/samba/lib64/python3.6/site-packages/samba/provision/__init__.py",
>> line 76, in <module>
>>>       from samba.ntacls import setntacl, getntacl, dsacl2fsacl
>>>     File
>> "/usr/local/samba/lib64/python3.6/site-packages/samba/ntacls.py", line
>> 35, in <module>
>>>       from samba.samba3 import libsmb_samba_internal as libsmb
>>> __________
>>>
>>>
>>>    This Server run samba4.14.3
>>>
>> What red-hat version is this ?
>>
>> How did you compile Samba ?
>>
>> What packages did you install to compile Samba ?
>>
>> Rowland
>
>   Thank for write me back;
>
> [root at gtmad1 private]# cat /etc/centos-release
> CentOS Linux release 8.3.2011
>
>
> ./configure --sbindir=/sbin/ --sysconfdir=/etc/samba/ --mandir=/usr/share/man/ --with-systemd --systemd-install-services --enable-debug -p -j2
> make
> make install


I can sort of understand putting the smb.conf in /etc/samba and the man 
pages in the normal places, but I wouldn't have put some of the binaries 
in /sbin whilst retaining others under /usr/local/samba , but this is 
your decision.

>
>
>
> dnf install flex
>
> dnf install docbook-style-xsl gcc gdb gnutls-devel gpgme-devel jansson-devel keyutils-libs-devel krb5-workstation libacl-devel libaio-devel libarchive-devel libattr-devel libblkid-devel libtasn1 libtasn1-tools libxml2-devel libxslt lmdb-devel openldap-devel pam-devel perl perl-ExtUtils-MakeMaker perl-Parse-Yapp popt-devel python3-cryptography python3-dns python3-gpg python36-devel readline-devel rpcgen systemd-devel tar zlib-devel
>
> dnf install python3-markdown


You may not have all the required packages installed, I suggest you 
download and run this script:

https://git.samba.org/?p=samba.git;a=blob_plain;f=bootstrap/generated-dists/centos8/bootstrap.sh;hb=v4-14-test

>
>
>
>   The curious is that it worked well a few days ago.
>   I think like an system updates broke something... but what?

As I do not use Centos, I can only suggest you find how to list all 
recently installed package updates.

Rowland





More information about the samba mailing list