samba-tool: create working private krb5.conf
commit5a084994144704a6c146b94f8a22cf57ce08deab
authorAlexander Bokovoy <ab@samba.org>
Mon, 7 Oct 2019 15:24:28 +0000 (7 18:24 +0300)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 8 Oct 2019 12:50:38 +0000 (8 12:50 +0000)
tree852b58404b3851a7680bcf20bf7af38582033ba3
parent0abd1189a60eea4501b5279ebc4bff2b5689f888
samba-tool: create working private krb5.conf

DNS update tool uses private krb5.conf which should have enough details
to authenticate with GSS-TSIG when running nsupdate.

Unfortunately, the configuration we provide is not enough. We set
defaults to not lookup REALM via DNS but at the same time we don't
provide any realm definition. As result, MIT Kerberos cannot actually
find a working realm for Samba AD deployment because it cannot query DNS
for a realm discovery or pick it up from the configuration.

Extend private krb5.conf with a realm definition that will allow MIT
Kerberos to look up KDC over DNS.

Signed-off-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source4/setup/krb5.conf