LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-09-2018, 04:40 AM   #1
xj25vm
Member
 
Registered: Jun 2008
Posts: 393

Rep: Reputation: 68
Is Samba in -current compiled with Kerberos support?


I have upgraded a Slackware server setup as a Samba AD DC from 14.2 to -current today, and cannot get the Kerberos side of things working for the Samba AD. To begin with, I just can't figure out if the default Samba package is compiled with any form of Kerberos or not? samba -b makes no mention of it either way, and all I can see in samba.SlackBuild is the following line commented out:

Code:
  # Gives errors:
  #--bundled-libraries=heimdal \
I'm pretty sure that the Samba package in 14.2 supported Kerberos out of the box - as far as I can remember. Does anybody know, one way or the other?
 
Old 03-09-2018, 07:03 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
According to the Slackware Packages Browser these files are shipped in samba-4.7.5:
/usr/lib64/python2.7/site-packages/samba/provision/kerberos_implementation.py
/usr/lib64/python2.7/site-packages/samba/provision/kerberos.py

I don't know how that works but am assuming that you'd need to have some kerberos implementation to make use of it, maybe python-kerberos for which a SlackBuils is available @ slackbuilds.or bur for Slackware 14.2 and more.
 
Old 03-09-2018, 07:14 AM   #3
xj25vm
Member
 
Registered: Jun 2008
Posts: 393

Original Poster
Rep: Reputation: 68
It turns out that, unless Samba is compiled specifically with config options against MIT Kerberos, it includes automatically its own private Heimdal kerberos code to cover kerberos functionality. I think the Python scripts you've highlighted above are used internally by Samba during setting up/migration. Samba itself sets kerberos up automatically during the configuration of an AD DC.

In my case I was chasing up completely the wrong path - it turned out to be the "interfaces = " option in Samba. The old server used eth1 for the LAN interface, while the new server used a bridge on br0 for its LAN interface. For all the other testing commands for Samba I used 'localhost' - which went through the loopback (which Samba was also listening on) - so they all completed fine. But when I tried to test kerberos, it was trying to reach Samba through the LAN IP - because of the kerberos DNS entry. However, Samba wasn't listening on that, as it wasn't configured correctly to listen on the bridge interface.

It only took 8 hours of troubleshooting, taking the whole server apart, recompiling Bind and running every test from Samba wiki to figure the above out - as none of the error messages mentioned anything to do with the interface :-)

As a side note for anybody setting up Samba AD DC on Slackware, although Samba sets up kerberos automatically, if you want to run the kerberos tests from Samba wiki, you will need to install one of the kerberos packages from SlackBuilds.org to get the necessary command line tools (kinit, klist etc.). krb5 works fine for me. That's another tidbit which took me ages to figure out when I first setup a Samba AD DC.

Last edited by xj25vm; 03-09-2018 at 07:19 AM.
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PAM Kerberos and ADS for Slackware-current - Call for testing ivandi Slackware 95 08-05-2015 10:46 PM
Can't compile postgresql with kerberos support Linux.tar.gz Slackware 5 01-03-2011 07:18 AM
Samba 3.3.4 ADS support not compiled in chackercon Linux - Server 8 05-28-2009 11:57 PM
Webmail with Kerberos support nocturn00 Linux - Networking 0 08-09-2005 07:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration