[Samba] Problem to import passdb in samba-tool

Rowland Penny rowlandpenny at googlemail.com
Mon Dec 1 07:17:10 MST 2014


On 01/12/14 11:55, Silvio Giunge Silva a.k.a kanazuchi wrote:
> So,
> to provision samba4 i need of the samba-tool and it's not working.I use poudriere to generate packages on FreeBSD, and the recursive packages too.
> I'm trying to discovery what lib that samba-tool needs ti import the lib passdb and install it on the pfSense to make it work.
>
>> Date: Mon, 1 Dec 2014 10:23:23 +0000
>> From: rowlandpenny at googlemail.com
>> To: samba at lists.samba.org
>> Subject: Re: [Samba] Problem to import passdb in samba-tool
>>
>> On 01/12/14 01:56, Silvio Giunge wrote:
>>> Rowland Penny <rowlandpenny <at> googlemail.com> writes:
>>>
>>>> On 27/11/14 17:10, Silvio Giunge Silva a.k.a kanazuchi wrote:
>>>>> Hi people,when i try to start the samba-tool to do anything, it
>>> returns me a error on passdb importI'm
>>>> trying to find a answer on the list but nothing that can resolve
>>> my problem.
>>>>> the follow errors is in below
>>>>> [2.2-BETA][root <at> pfSense.localdomain]/root: samba-
>>> toolTraceback (most recent call last):  File
>>>> "/usr/local/bin/samba-tool", line 36, in <module>    from
>>> samba.netcmd.main import cmd_sambatool  File
>>>> "/usr/local/lib/python2.7/site-packages/samba/netcmd/main.py",
>>> line 24, in <module>    from
>>>> samba.netcmd.delegation import cmd_delegation  File
>>>> "/usr/local/lib/python2.7/site-
>>> packages/samba/netcmd/delegation.py", line 23, in <module>    from
>>>> samba import provision  File
>>>> "/usr/local/lib/python2.7/site-
>>> packages/samba/provision/__init__.py", line 46, in <module>
>>>> from samba.samba3 import smbd, passdb  File
>>>> "/usr/local/lib/python2.7/site-packages/samba/samba3/__init__.py",
>>> line 29, in <module>    import
>>>> passdbImportError: /usr/local/lib/libsmbconf.so.0: Undefined
>>> symbol "yp_match" 		 	   		
>>>> Hi, could you post a bit more info, i.e. have you provisioned
>>> samba ?
>>>> what version of samba ?, what OS ?, what are you trying to do ?.
>>>>
>>>> Also please post your smb.conf
>>>>
>>>> Rowland
>>>>
>>> Hi Rowland
>>>
>>> I'm using pfSense 2.2 on FreeBSD 10.1 and samba4.
>>> I think that this problem is because any lib is missing, i think
>>> that can be anything with NIS
>>>
>>>
>>>
>> OK, where did you get samba4 from, is it a package from FreeBSD, or did
>> you compile it yourself ?
>>
>> If you compiled it yourself, what packages did you install before the
>> compile ?
>>
>> How did you provision samba4 ?
>>
>> Rowland
>>
>> -- 
>> To unsubscribe from this list go to the following URL and read the
>> instructions:  https://lists.samba.org/mailman/options/samba
>   		 	   		   		 	   		
OK, this must be a problem with your setup, I have just installed 
FreeBSD 10.1 in a VM, then installed samba41 from ports, I now know that 
FreeBSD is very similar to Gentoo, everything seems to be compiled!

To cut a long story short, I have provisioned samba4.1.11, this means 
that samba-tool works for me without error.

If I, someone who has never before used FreeBSD, can get it to work, it 
must be the system that you are using.

Rowland



More information about the samba mailing list