Hi everyone, I have just updated samba from 4.11.6 to 4.12.0, compiled by the sources. Everything was fine and AD server is ok , but when I call samba-tool this error always appear: ldb: unable to dlopen /usr/lib64/samba/ldb/local_password.so : /usr/lib64/samba/libsamdb-common-samba4.so: version `SAMBA_4.11.6' not found (required by /usr/lib64/samba/ldb/local_password.so) ldb: unable to dlopen /usr/lib64/samba/ldb/simple_dn.so : /usr/lib64/samba/libdsdb-module-samba4.so: version `SAMBA_4.11.6' not found (required by /usr/lib64/samba/ldb/simple_dn.so) ldb: unable to dlopen /usr/lib64/samba/ldb/simple_ldap_map.so : /usr/lib64/samba/libsamdb-common-samba4.so: version `SAMBA_4.11.6' not found (required by /usr/lib64/samba/ldb/simple_ldap_map.so) Can someone help me ? *David Coelho dos Santos*
This happened to me as well. I use the default /usr/local/samba. I moved that to samba-old, make install'ed, then copied etc, private and var/locks/sysvol and ran the dns upgrade script. The problem is some libraries being moved, renamed etc. On 15/04/2020 18:03, David Coelho via samba wrote:> Hi everyone, > > I have just updated samba from 4.11.6 to 4.12.0, compiled by the sources. > Everything was fine and AD server is ok , but when I call samba-tool this > error always appear: > > ldb: unable to dlopen /usr/lib64/samba/ldb/local_password.so : > /usr/lib64/samba/libsamdb-common-samba4.so: version `SAMBA_4.11.6' not > found (required by /usr/lib64/samba/ldb/local_password.so) > ldb: unable to dlopen /usr/lib64/samba/ldb/simple_dn.so : > /usr/lib64/samba/libdsdb-module-samba4.so: version `SAMBA_4.11.6' not found > (required by /usr/lib64/samba/ldb/simple_dn.so) > ldb: unable to dlopen /usr/lib64/samba/ldb/simple_ldap_map.so : > /usr/lib64/samba/libsamdb-common-samba4.so: version `SAMBA_4.11.6' not > found (required by /usr/lib64/samba/ldb/simple_ldap_map.so) > > Can someone help me ? > > > > *David Coelho dos Santos*
On 15/04/2020 18:03, David Coelho via samba wrote:> Hi everyone, > > I have just updated samba from 4.11.6 to 4.12.0, compiled by the sources. > Everything was fine and AD server is ok , but when I call samba-tool this > error always appear: > > ldb: unable to dlopen /usr/lib64/samba/ldb/local_password.so : > /usr/lib64/samba/libsamdb-common-samba4.so: version `SAMBA_4.11.6' not > found (required by /usr/lib64/samba/ldb/local_password.so) > ldb: unable to dlopen /usr/lib64/samba/ldb/simple_dn.so : > /usr/lib64/samba/libdsdb-module-samba4.so: version `SAMBA_4.11.6' not found > (required by /usr/lib64/samba/ldb/simple_dn.so) > ldb: unable to dlopen /usr/lib64/samba/ldb/simple_ldap_map.so : > /usr/lib64/samba/libsamdb-common-samba4.so: version `SAMBA_4.11.6' not > found (required by /usr/lib64/samba/ldb/simple_ldap_map.so) > > Can someone help me ? > > > > *David Coelho dos Santos*At a guess, it looks like your $PATH is wrong. You don't specify how you compiled Samba, but if you just ran './configure && make && sudo make install', Samba would all be installed in /usr/local/samba. /usr/lib64/samba is usually where the red-hat distros put some of the Samba files. So, more info required ;-) Rowland
That is correct. Most of the time this isn't an issue because the new ldb modules, linking to the new symbol versions, overwrite the old files on 'make install'. However we chose to remove some obsolete ldb modules in the 4.12 cycle and so the old modules remain, triggering these warnings. We notice the old modules because we try to load all the modules during startup of ldb to see if they wish to provide hooks for the command line handling in the ldb* tools. (But this happens for all ldb consumers, including samba-tool). Andrew Bartlett On Wed, 2020-04-15 at 18:18 +0100, Alex MacCuish via samba wrote:> This happened to me as well. I use the default /usr/local/samba. I > moved > that to samba-old, make install'ed, then copied etc, private and > var/locks/sysvol and ran the dns upgrade script. The problem is some > libraries being moved, renamed etc. > > On 15/04/2020 18:03, David Coelho via samba wrote: > > Hi everyone, > > > > I have just updated samba from 4.11.6 to 4.12.0, compiled by the > > sources. > > Everything was fine and AD server is ok , but when I call samba- > > tool this > > error always appear: > > > > ldb: unable to dlopen /usr/lib64/samba/ldb/local_password.so : > > /usr/lib64/samba/libsamdb-common-samba4.so: version `SAMBA_4.11.6' > > not > > found (required by /usr/lib64/samba/ldb/local_password.so) > > ldb: unable to dlopen /usr/lib64/samba/ldb/simple_dn.so : > > /usr/lib64/samba/libdsdb-module-samba4.so: version `SAMBA_4.11.6' > > not found > > (required by /usr/lib64/samba/ldb/simple_dn.so) > > ldb: unable to dlopen /usr/lib64/samba/ldb/simple_ldap_map.so : > > /usr/lib64/samba/libsamdb-common-samba4.so: version `SAMBA_4.11.6' > > not > > found (required by /usr/lib64/samba/ldb/simple_ldap_map.so) > > > > Can someone help me ? > > > > > > > > *David Coelho dos Santos* > >-- Andrew Bartlett https://samba.org/~abartlet/ Authentication Developer, Samba Team https://samba.org Samba Developer, Catalyst IT https://catalyst.net.nz/services/samba