Bug 6998 - certain versions of samba member servers fall out of the domain
Summary: certain versions of samba member servers fall out of the domain
Alias: None
Product: Samba 3.4
Classification: Unclassified
Component: Domain Control (show other bugs)
Version: 3.4.3
Hardware: All All
: P3 critical
Target Milestone: ---
Assignee: Björn Jacke
QA Contact: Samba QA Contact
: 7585 (view as bug list)
Depends on:
Reported: 2009-12-17 10:08 UTC by Björn Jacke
Modified: 2020-12-22 02:23 UTC (History)
4 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Björn Jacke 2009-12-17 10:08:05 UTC
All versions of samba 3.3 below 3.3.9 fall out of the domain with a samba 3.4.3 PDC. Also 3.2 versions are affected but I did not figure out from which version on this is fixed in 3.2. In 3.3.9 there is no hint in the release notes which change might have fixed this.

The problem starts to show up as soon as the client tries to change its machine account password for the first time. By setting "machine account timeout = 60" it's easy to trigger fast. The passwords do mismatch after the password change. net rpc testjoin will fail immediately. This was not a problem with Samba 3.0.28 running as PDC.

If possible the current Samba release should work also with samba release below 3.3.9 and not lead to password mismatches.

In any case we should mention this version interoperability pitfall in the release notes in capital letters :-).
Comment 1 Karolin Seeger 2009-12-23 06:41:27 UTC
(In reply to comment #0)
> The problem starts to show up as soon as the client tries to change its machine
> account password for the first time. By setting "machine account timeout = 60"
> it's easy to trigger fast. The passwords do mismatch after the password change.

The parameter is called "machine password timeout", not "machine account timeout".
Comment 2 Karolin Seeger 2009-12-23 09:34:08 UTC

*** This bug has been marked as a duplicate of bug 6664 ***
Comment 3 Björn Jacke 2009-12-28 06:09:52 UTC
Karolin, I can't see why this is a dup of 6664. Maybe the fix from that bug introduced the problem that samba 3.3 releases <3.3.9 now silenty fall out of the domain. As long as this happens this is definetely still a blocker bug.
Comment 4 Volker Lendecke 2009-12-28 06:15:22 UTC
This will take a while to fix. We will have to add code to the all servers that we have out there to store two versions of the machine password. One encrypted with the correct and one encrypted with the wrong hash. If a machine wants to authenticate, we have to try against both. Very ugly but if this is a blocker then inevitable. We would also have to work with Microsoft to do the same.

Comment 5 Björn Jacke 2009-12-28 06:54:51 UTC
This is why I think this is a blocker:
Imagine an administrator updates the DCs to a samba release that contains the patch from #6664. First everything seems to be fine. Then, in the course of the next 7 days Samba 3.2 and 3.3 member servers stop working. There is no obvious reason why that hapens. There has not even been a mentioning of a machine password code change which might cause or fix the problem in the release notes. Our user are just left in the dark.

Maybe an advisory sent via the samba annunce list telling which samba member servers will stop working with which Samba PDC versions would be adequate to "fix" this bug, too.

But we cannot just let samba administrators out there in the world walk straight up into that trap while we know about that problem.
Comment 6 Volker Lendecke 2009-12-28 07:25:25 UTC
Right now this bug is blocking a 3.4 release, and it will FOREVER. So shall we stop shipping Samba now?

Comment 7 Jeremy Allison 2009-12-28 17:33:37 UTC
This is a notification problem. We can't go back to the incorrect code.

Maybe add a debug level 0 log message when a machine password missmatch is detected pointing the admin at a wiki site with the fix (disable machine password changing for Samba versions < 3.3.9).

Comment 8 Karolin Seeger 2009-12-29 02:46:55 UTC
Please correct me if I am wrong, but as far as I understand, this is a client side problem which is fixed in all current Samba versions. Samba members fail to change the machine password if the client does not contain the fix attached to bug #6664 (or do not change the machine password at all in very old versions).

So I think this is not a bug in 3.4.3 at all, but a bug in older Samba version (which has been fixed meanwhile). That's why I don't think this is a showstopper for 3.4.4. So I will lower severity now.
Comment 9 Björn Jacke 2009-12-29 05:37:49 UTC
Basically I agree, Karolin. But we should publish an explicit errata pointing out VERY CLEAR:

- which versions of Samba (as member server) stop working if Samba versions with the fix from #6444 are running on Domain Controlers
- which versions are not affected even if the fir from #6444 is in the DC's Samba version
- and which workaround can be done if people can't update older Samba versions (e.g. increase machine password timeout to mulitple years and rejoin the members).

That's what was my proposal in comment #5. It simply damages Samba's image if we introduce major incompatibilities with older versions of our own product and don't clearly point that out. Such an errata should be published as soon as possible - preferably before the next release.
Comment 10 Michael Adam 2009-12-29 07:48:33 UTC
To my understanding, this is a bug in the client side of 
samba (machine password change). It is fixed since many weeks
in the releases. We have other bugs in older samba releases;
this is the reason that we ship bugfix releases, right? :-)

And we don't start creating workarounds in new samba releases
for bugs in older samba versions. After all, samba is not
windows - or is it?

So I'd say that we simply close this bug.
Again, it is not a 3.4 dc bug but a client bug
that was uncovered by a change in the dc code.
And the client side is already fixed.
Vendors can easily backport the fix to their
shipped version. Maybe we could send a mail
to samba-announce with a hint, but generally,
I think samba has all it can and should do in
this respect.

Cheers - Michael
Comment 11 Karolin Seeger 2009-12-29 07:51:15 UTC
Günther (or anyone else), could you please provide exact information which versions/combinations are affected and which are not? Thanks!
Comment 12 Karolin Seeger 2010-02-18 03:18:59 UTC
I don't get enough information for writing a summary.
Closing out bug report.
Björn (or anyone else), if you would like to provide a text, please feel free to reopen.
Comment 13 Björn Jacke 2010-02-18 10:00:03 UTC
a bug report about a serious lack of information which needs to be closed cannot be silently closed. When no one can tell which versions are now incaompatible then we need to make an announcement that anybody *must* update to the current version of his preferred release tree.
Comment 14 Björn Jacke 2010-02-19 13:00:43 UTC
it seems everyone thinks we need nothing to do here. I also give up my struggles and close it as WONTFIX.
Comment 15 Björn Jacke 2020-12-22 02:23:24 UTC
*** Bug 7585 has been marked as a duplicate of this bug. ***