[Samba] Samba and LDAP: Trouble adding Win XP machines to the
domain
Ray Klassen
rklassen at mccscs.com
Wed Jun 27 18:40:20 GMT 2007
mikelOn wrote:
>
> I have tried to add a new machine right now and this is the log of the
> operation:
>
> [2007/06/27 18:53:42, 3] passdb/pdb_interface.c:pdb_default_create_user(368)
> _samr_create_user: Running the command `/usr/sbin/smbldap-useradd -w
> "mikelvm$"' gave 0
> [2007/06/27 18:53:42, 3] passdb/pdb_interface.c:pdb_default_create_user(384)
> pdb_default_create_user: failed to create a new user structure:
> NT_STATUS_NO_SUCH_USER
>
> As you can see is not of much help (at least for me). I even debugged the
> domain addition process in windows which failed in the NetUserAdd api with
> the same error (NT_STATUS_NO_SUCH_USER).
>
> The only think I can guess is that samba is not doing its job...
>
> Thanks for your time,
>
> Mikel
>
>
> Edmundo Valle Neto wrote:
>> mikelOn escreveu:
>>> Hi Alex,
>>>
>>> I don´t think those modifiers would change anything but I have tried them
>>> anyway and the objectclass is still not being added.
>>>
>>> Thanks for the suggestion.
>>>
>>>
>>> Alex Crow wrote:
>>>
>>>> On Wed, 2007-06-27 at 01:42 -0700, mikelOn wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> I finally found where the problem is. The samba attributes are not
>>>>> being
>>>>> added when the workstation entry is created. The "sambaSamAccount"
>>>>> objectclass is missing.
>>>>>
>>>>> Why is it not being added if it is suppossed to be a windows
>>>>> workstation?
>>>>> Is
>>>>> there a bug in the "smbldap-useradd" script when invoked with the "-w"
>>>>> parameter?
>>>>>
>>>>>
>>>> You need both "-a" and "-m" passwd to smbldap-useradd for the samba
>>>> attributes to be added, IMHO.
>>>>
>>>> Alex
>>>>
>>>> --
>>>> To unsubscribe from this list go to the following URL and read the
>>>> instructions: https://lists.samba.org/mailman/listinfo/samba
>>>>
>> Again, those scripts are used only by tools that create accounts trough
>> samba, like net or usrmgr, if you dont use it those lines will not be
>> used.
>>
>> About the samba attributes, when you add a machine account the script
>> "add machine" must NOT ADD SAMBA ATTRIBUTES, only posix, samba does that
>> alone. Refer to the idealx documentation (if you really want that things
>> work properly, reading the documentation is not an option), it was
>> already discussed here and the documentation explains how to configure
>> that and how it should work.
>>
>> http://sourceforge.net/docman/display_doc.php?docid=33543&group_id=166108
>>
>> About knowing what is happening, put a log level 2 or 3 and try to join
>> a machine. Look at the logs, it should say what exit the script gave and
>> what samba tried to do.
>>
>> Regards.
>>
>> Edmundo Valle Neto
>>
>>
>> --
>> To unsubscribe from this list go to the following URL and read the
>> instructions: https://lists.samba.org/mailman/listinfo/samba
>>
>>
>
What does the your /etc/libnss-ldap.conf or /etc/ldap.conf look like?
--
Ray Klassen
Computer SysAdmin
MCC Supportive Care Services
More information about the samba
mailing list