[Samba] Samba4 + external ldap

Rowland Penny rowlandpenny at googlemail.com
Tue Mar 24 12:05:41 MDT 2015


On 24/03/15 17:45, Dale Schroeder wrote:
> 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.
>>>
>>>
>>
>

I guess you missed this:

_samr_create_user: Running the command `/usr/sbin/smbldap-useradd -m

Rowland




More information about the samba mailing list