[Samba] Samba4 + external ldap

Dale Schroeder dale at BriannasSaladDressing.com
Tue Mar 24 11:45:00 MDT 2015


Elias,

The easiest way is to use the smbldap-tools package; i.e. man 
smbldap-useradd for syntax and options.

Dale

On 03/24/2015 9:51 AM, Elias Pereira wrote:
> After some reading and attempts, I managed to set the Samba4 with the
> external openldap.
>
> I tried to add a user through the command "smbpasswd", but an error
> occurred, which follows below:
>
> root at sol:~# smbpasswd -a billy
>> smbldap_search_domain_info: Searching
>>> for:[(&(objectClass=sambaDomain)(sambaDomainName=POA))]
>> smbldap_open_connection: connection opened
>>
>> ldap_connect_system: successful connection to the LDAP server
>>
>> New SMB password:
>>
>> Retype new SMB password:
>>
>> Failed to update uidNumber in sambaUnixIdPool: modifications require
>>> authentication at /usr/share/perl5/smbldap_tools.pm line 1212.
>> _samr_create_user: Running the command `/usr/sbin/smbldap-useradd -m
>>> "billy"' gave 127
>> Could not find user billy, add script did not work
>>
>> Failed to add entry for user billy.
>>
>>
> On Mon, Mar 23, 2015 at 5:00 PM, Rowland Penny <rowlandpenny at googlemail.com>
> wrote:
>
>> On 23/03/15 19:49, Elias Pereira wrote:
>>
>>> Hello,
>>>
>>> - I have a server with ldap (debian 7).
>>> - I have another server with samba (freebsd 8).
>>>
>>> I want to set up a new samba server in a debian.
>>>
>>> My question is:
>>>
>>> In addition to the default Samba configuration, which other packages have
>>> to install on the new server to communicate with the ldap?
>>>
>>> Note: I researched a lot about how to configure a Samba server with an
>>> external ldap, but all the links of the research were on the samba and
>>> ldap
>>> on the same server.
>>>
>> I take it that you want to set up an NT-4 style domain controller, if so,
>> then the internet is littered with howtos, you are just searching on the
>> wrong terms, try samba3 instead of samba4.
>>
>> Rowland
>>
>> --
>> To unsubscribe from this list go to the following URL and read the
>> instructions:  https://lists.samba.org/mailman/options/samba
>>
>
>



More information about the samba mailing list