Knowledgebase:
Samba 3.6 "the trust relationship between this workstation and the primary domain failed"
Posted by rbTech Staff on 19 April 2016 05:10 PM

When you ask the Google about this, you'll get lots of hits suggesting that you un-join the machine in question from the domain, and re-join it.  But what happens if that doesn't work?

Turns out that when I narrowed my Googling to only postings in the last 30 days, there's actually a Samba update that's to blame for this issue, and there's an easy workaround (though as of this writing no permanent solution).

If you're running Redhat or CentOS and yum, you can roll your Samba packages back to the last version thusly:
[[email protected]]# yum downgrade samba\* libsmbclient
[[email protected]]# /etc/init.d/smb restart && /etc/init.d/nmb restart

If you're running Ubuntu, then the following should work (WARNING: I HAVE NOT TESTED THIS, PROCEED WITH EXTREME CAUTION!!!):
[[email protected]]# dpkg -i libpam-smbpass_3.6.3-2ubuntu2.17_amd64.deb libpam-winbind_3.6.3-2ubuntu2.17_amd64.deb libwbclient0_3.6.3-2ubuntu2.17_amd64.deb samba-common_3.6.3-2ubuntu2.17_all.deb samba_3.6.3-2ubuntu2.17_amd64.deb winbind_3.6.3-2ubuntu2.17_amd64.deb samba-common-bin_3.6.3-2ubuntu2.17_amd64.deb

 

Sources:
https://bugzilla.redhat.com/show_bug.cgi?id=1326918
http://serverfault.com/questions/771388/how-can-i-fix-samba-3-6-25-the-trust-relationship-between-this-workstation-and
http://www.eenyhelp.com/samba-badlock-samba-3-6-23-trust-relationship-help-216009871.html

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).