From: Björn Jacke on
On 2010-03-09 at 08:57 +0100 toonverdonck(a)dommel.be sent off:
> I'm running a debian lenny machine with samba (3.5.0) and OpenLDAP installed
> (2.4.11). When i add a machine to the domain, windows reports the following
> error: "The specified computer account could not be found". The computer
> account is added to the LDAP database but without the samba attributes. The
> weird thing is that if i try it a second the, the samba attributes are added to
> the computer account and the machine successfully joins the domain. This
> happens with XP, Vista and Windows 7 cliënts. I have no idea why it doesn't
> work the first time.

make sure to invoke nscd -i passwd at the end of your add machine/user script
and maybe sleep a second.

Björn
--
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
From: toonverdonck on
I channged the add machine and the add user script to:
smbldap-useradd .. "%u" && nscd -i passwd && sleep 1s
I think that is what you mean? Unfortunately it didn't solved the problem.

>> On 09 Mar 2010, at 16:53, Björn Jacke wrote:
>>
>> On 2010-03-09 at 08:57 +0100 toonverdonck(a)dommel.be sent off:
>> I'm running a debian lenny machine with samba (3.5.0) and OpenLDAP installed
>> (2.4.11). When i add a machine to the domain, windows reports the following
>> error: "The specified computer account could not be found". The computer
>> account is added to the LDAP database but without the samba attributes. The
>> weird thing is that if i try it a second the, the samba attributes are added
>> to
>> the computer account and the machine successfully joins the domain. This
>> happens with XP, Vista and Windows 7 cliënts. I have no idea why it doesn't
>> work the first time.
>>
>> make sure to invoke nscd -i passwd at the end of your add machine/user script
>> and maybe sleep a second.
>>
>> Björn
>> --
>> SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
>> phone: +49-551-370000-0, fax: +49-551-370000-9
>> AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
From: David Markey on
Are you using nscd?

/etc/nscd stop and see what happens

On 10 March 2010 12:16, <toonverdonck(a)dommel.be> wrote:

> I channged the add machine and the add user script to:
> smbldap-useradd .. "%u" && nscd -i passwd && sleep 1s
> I think that is what you mean? Unfortunately it didn't solved the problem.
>
> >> On 09 Mar 2010, at 16:53, Björn Jacke wrote:
> >>
> >> On 2010-03-09 at 08:57 +0100 toonverdonck(a)dommel.be sent off:
> >> I'm running a debian lenny machine with samba (3.5.0) and OpenLDAP
> installed
> >> (2.4.11). When i add a machine to the domain, windows reports the
> following
> >> error: "The specified computer account could not be found". The computer
> >> account is added to the LDAP database but without the samba attributes.
> The
> >> weird thing is that if i try it a second the, the samba attributes are
> added
> >> to
> >> the computer account and the machine successfully joins the domain. This
> >> happens with XP, Vista and Windows 7 cliënts. I have no idea why it
> doesn't
> >> work the first time.
> >>
> >> make sure to invoke nscd -i passwd at the end of your add machine/user
> script
> >> and maybe sleep a second.
> >>
> >> Björn
> >> --
> >> SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
> >> phone: +49-551-370000-0, fax: +49-551-370000-9
> >> AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
>
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
From: David Markey on
Sorry, /etc/init.d/nscd stop

On 10 March 2010 12:25, David Markey <admin(a)dmarkey.com> wrote:

> Are you using nscd?
>
> /etc/nscd stop and see what happens
>
>
> On 10 March 2010 12:16, <toonverdonck(a)dommel.be> wrote:
>
>> I channged the add machine and the add user script to:
>> smbldap-useradd .. "%u" && nscd -i passwd && sleep 1s
>> I think that is what you mean? Unfortunately it didn't solved the problem.
>>
>> >> On 09 Mar 2010, at 16:53, Björn Jacke wrote:
>> >>
>> >> On 2010-03-09 at 08:57 +0100 toonverdonck(a)dommel.be sent off:
>> >> I'm running a debian lenny machine with samba (3.5.0) and OpenLDAP
>> installed
>> >> (2.4.11). When i add a machine to the domain, windows reports the
>> following
>> >> error: "The specified computer account could not be found". The
>> computer
>> >> account is added to the LDAP database but without the samba attributes.
>> The
>> >> weird thing is that if i try it a second the, the samba attributes are
>> added
>> >> to
>> >> the computer account and the machine successfully joins the domain.
>> This
>> >> happens with XP, Vista and Windows 7 cliënts. I have no idea why it
>> doesn't
>> >> work the first time.
>> >>
>> >> make sure to invoke nscd -i passwd at the end of your add machine/user
>> script
>> >> and maybe sleep a second.
>> >>
>> >> Björn
>> >> --
>> >> SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
>> >> phone: +49-551-370000-0, fax: +49-551-370000-9
>> >> AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
>>
>> --
>> To unsubscribe from this list go to the following URL and read the
>> instructions: https://lists.samba.org/mailman/options/samba
>>
>
>
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
From: toonverdonck on
I stopped the nscd service and now I can join the machine's from the
first time!
Wasn't the cache cleared by adding "nscd -i passwd" to the scripts? Is
it a good
idea to disable this service?
Quoting David Markey <admin(a)dmarkey.com>:

> Sorry, /etc/init.d/nscd stop
>
> On 10 March 2010 12:25, David Markey <admin(a)dmarkey.com> wrote:
>
>> Are you using nscd?
>>
>> /etc/nscd stop and see what happens
>>
>>
>> On 10 March 2010 12:16, <toonverdonck(a)dommel.be> wrote:
>>
>>> I channged the add machine and the add user script to:
>>> smbldap-useradd .. "%u" && nscd -i passwd && sleep 1s
>>> I think that is what you mean? Unfortunately it didn't solved the problem.
>>>
>>> >> On 09 Mar 2010, at 16:53, Björn Jacke wrote:
>>> >>
>>> >> On 2010-03-09 at 08:57 +0100 toonverdonck(a)dommel.be sent off:
>>> >> I'm running a debian lenny machine with samba (3.5.0) and OpenLDAP
>>> installed
>>> >> (2.4.11). When i add a machine to the domain, windows reports the
>>> following
>>> >> error: "The specified computer account could not be found". The
>>> computer
>>> >> account is added to the LDAP database but without the samba attributes.
>>> The
>>> >> weird thing is that if i try it a second the, the samba attributes are
>>> added
>>> >> to
>>> >> the computer account and the machine successfully joins the domain.
>>> This
>>> >> happens with XP, Vista and Windows 7 cliënts. I have no idea why it
>>> doesn't
>>> >> work the first time.
>>> >>
>>> >> make sure to invoke nscd -i passwd at the end of your add machine/user
>>> script
>>> >> and maybe sleep a second.
>>> >>
>>> >> Björn
>>> >> --
>>> >> SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
>>> >> phone: +49-551-370000-0, fax: +49-551-370000-9
>>> >> AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
>>>
>>> --
>>> To unsubscribe from this list go to the following URL and read the
>>> instructions: https://lists.samba.org/mailman/options/samba
>>>
>>
>>
>



--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba