Fenux.Net - The Life of a Geek
More on the subject of Documenting Your Fixes...
Samba
Posted on 8/19/2005 11:09 am in Samba
I had to reinstall Saturn last night. The OS hard drive decided it didn't like me anymore. It's taking forever to get it all back up, but I'm almost there. Next step, getting Samba working again.

I had this problem before but I forget to document it properly, so I've had to figure it out again. When I tried to join the computer the Active Directory domain, it kept giving odd error messages. I'm documenting the fix this time so I don't lose it.

With FreeBSD 5.x, the default Kerberos installation doesn't work with Samba 3.x in ADS mode. You have to deinstall the original Kerberos installation by removing files from /usr/bin and /usr/sbin. Then we have to add 'NO_KERBEROS=true' into our /etc/make.conf file so that it doesn't rebuild it again. Next we have to install Kerberos from the security/krb5 port. After all of that is done, we then have to rebuild Samba so that it uses the new Kerberos installation.

Below are the files to remove the original Kerberos:
  • rm /usr/bin/kinit
  • rm /usr/bin/kdestory
  • rm /usr/bin/klist
  • rm /usr/bin/kpasswd
  • rm /usr/bin/krb5-config
  • rm /usr/bin/ksu
  • rm /usr/bin/verify_krb5_conf
  • rm /usr/bin/kadmin
  • rm /usr/sbin/ktutil
  • rm /usr/sbin/ktstash


Creative Commons License  Subscribe with Bloglines  Get Daily Wisdom!
This work is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 United States License.
© 2000-2012 Jason Burgess