ImportError: libreplace.so with samba-tool domain provision
Julien Kerihuel
j.kerihuel at openchange.org
Thu Jan 24 09:39:09 MST 2013
Hi List,
Several users have reported one issue while provisioning Samba4 AD with
latest Samba GIT revision (as of today) on Debian Squeeze and Wheezy:
PYTHONPATH=$PYTHONPATH:/usr/local/samba/lib/python2.7/site-packages LDB_MODULES_PATH=/usr/local/samba/lib/ldb/ /usr/local/samba/bin/samba-tool domain provision --realm=oc.local --domain=OC --adminpass='openchange1!' --server-role='dc'
Traceback (most recent call last):
File "/usr/local/samba/bin/samba-tool", line 33, in <module>
from samba.netcmd.main import cmd_sambatool
File "/usr/local/samba/lib/python2.7/site-packages/samba/__init__.py", line 49, in <module>
import ldb
ImportError: libreplace.so: cannot open shared object file: No such file or directory
After some preliminary investigations, it looks the error is related to
the LDB python module and is reproducible easily:
Python 2.7.3 (default, Jan 2 2013, 13:56:14)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ldb
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: libreplace.so: cannot open shared object file: No such file or directory
The following environment variables (LDB_MODULES_PATH and
LDB_MODULESDIR) has been set (afterwards) while looking at some possible
misconfiguration in user environment, but no changes.
A strace output is available here: http://paste.debian.net/228169/
I realize a bit late a bugzilla report would actually have been more
useful here ...
Kind Regards,
Julien.
--
Julien Kerihuel
j.kerihuel at openchange.org
OpenChange Project Founder
GPG Fingerprint: 0B55 783D A781 6329 108A B609 7EF6 FE11 A35F 1F79
More information about the samba-technical
mailing list