Joining a domain whose PDC is running Debian Etch

If you try to join a domain where the PDC is Debian Etch and the machine trying to join is not, you may run into problems. Basically, there is a bug in Samba 3.0.24 that stops newer clients from joining. The problem has to be fixed by changing three lines of source in two files and rebuilding Samba on the PDC.

Here's what you have to do:

Ensure that you have a deb-src URL in your /etc/apt/sources.list like so:

deb-src http://leela.sd28.bc.ca:9999/debian/ etch main contrib non-free

Download the Samba source from the Debian repository with the following command

apt-get source samba

Change to the samba-3.0.24 directory that has been created.

Download the patch (samba.patch) at the bottom of this page. You could use wget for this:

wget http://deandra.homeip.net/files/samba.patch

Apply the patch from the samba-3.0.24 directory. You can edit the appropriate files manually, or run the following command:

patch -p0 samba.patch

Install the build dependencies for the Samba source package:

apt-get build-dep samba

Compile the samba source package into its binary packages:

dpkg-buildpackage

When this is done, change to the parent directory (cd ..), and install the samba_3.0.24-6etch10_i386.deb file

dpkg -i samba_3.0.24-6etch10_i386.deb

This will automatically replace your package. You should now be able to join newer clients to the domain.

References

http://lists.samba.org/archive/samba/2006-December/127662.html