I had the same problem, your ldap database is corrupted.
export your ldap database, remove it, remove the samba .tdb files and
set it up again.
i searched a lot for this problem, never got the answare.
Louis
>-----Oorspronkelijk bericht-----
>Van: samba-bounces+louis=van-belle.nl@lists.samba.org
>[mailto:samba-bounces+louis=van-belle.nl@lists.samba.org]
>Namens Chris Lounsbury
>Verzonden: woensdag 20 juli 2005 16:54
>Aan: samba@lists.samba.org
>Onderwerp: [Samba] stub recieved bad data
>
>Hello,
>We are using samba as a primary domain controller. The other
>day when my users tried to log on they started getting this
>error messae "stub recieved bad data". When I tried to join a
>machine to the domain I got an error message that said "the
>stub recieved a null reference". We have had samba up as a
>PDC for about 8 months with no problems until now and we
>haven't recently added any new users or programs. Any help
>would be appreciated.
>Thanks
>Chris
>
>--
>To unsubscribe from this list go to the following URL and read the
>instructions: https://lists.samba.org/mailman/listinfo/samba
>