Bug 228365 - net/samba48 allow building with MIT krb5 KDC
Summary: net/samba48 allow building with MIT krb5 KDC
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Timur I. Bakeyev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-19 17:00 UTC by Felix Palmen
Modified: 2018-07-31 03:28 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (timur)


Attachments
Enable krb5kdc in samba48 (4.74 KB, patch)
2018-05-19 17:00 UTC, Felix Palmen
no flags Details | Diff
enable krb5kdc in samba47-4.7.3 (4.92 KB, patch)
2018-05-19 17:01 UTC, Felix Palmen
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Palmen freebsd_committer freebsd_triage 2018-05-19 17:00:29 UTC
Created attachment 193537 [details]
Enable krb5kdc in samba48

The attached patch allows samba 4.8 to act as an AD DC on a system using MIT kerberos (security/krb5). For details, see:

https://wiki.samba.org/index.php/Running_a_Samba_AD_DC_with_MIT_Kerberos_KDC

It uses the option GSSAPI_MIT to build samba --with-system-mitkrb5.

As domain provisioning seems broken at the moment, this is a bit complicated to test -- I provisioned a domain using samba47 4.7.3 from SVN revision 456521 with a similar patch (also attached) and upgraded to samba48 afterwards, so far, it seems to work.
Comment 1 Felix Palmen freebsd_committer freebsd_triage 2018-05-19 17:01:14 UTC
Created attachment 193538 [details]
enable krb5kdc in samba47-4.7.3
Comment 2 Timur I. Bakeyev freebsd_committer freebsd_triage 2018-05-19 21:27:00 UTC
Thanks a lot, Felix! Much appreciated!
Comment 3 Felix Palmen freebsd_committer freebsd_triage 2018-05-23 08:36:47 UTC
On a second thought, as this does more than just using GSSAPI implemented by MIT-krb5, it might make more sense to use a different option here -- maybe a radio group KDC with the options KDC_INTERNAL (which is a heimdal one) vs KDC_MIT? OTOH, GSSAPI_* is often used from make.conf and if you're building a system based on MIT kerberos, it probably makes sense to have samba use the MIT KDC?

So, which one would be better? I could update the patch if necessary.
Comment 4 Timur I. Bakeyev freebsd_committer freebsd_triage 2018-05-23 09:29:41 UTC
(In reply to Felix Palmen from comment #3)
I've taken OPTIONS_SINGLE approach, but can you, please, reply my mail regarding need of the post-install-GSSAPI_MIT-on?
Comment 5 Timur I. Bakeyev freebsd_committer freebsd_triage 2018-07-31 03:28:49 UTC
Samba 4.8 now comes with the GSSAPI_MIT option. Please, try it and check how does it work for you.