ImportError: libreplace.so with samba-tool domain provision
Julien Kerihuel
j.kerihuel at openchange.org
Thu Jan 24 10:03:51 MST 2013
Quick update:
Copying /usr/local/samba/lib/ldb/libreplace.so to /usr/local/samba/lib
fixed the import ldb issue and lets user run provisioning script
successfully. Is it worth as a fix or would it impact user some time
later?
Btw, the same issue occurred with 4.0.0 release, so nothing specific to
a recent commit I guess.
Kind Regards,
Julien.
On Thu, 2013-01-24 at 17:39 +0100, Julien Kerihuel wrote:
> 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