Bug 836628 - authconfig shouldn't set dns_lookup_xxx = false
Summary: authconfig shouldn't set dns_lookup_xxx = false
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: authconfig
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomas Mraz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-29 16:45 UTC by Stef Walter
Modified: 2012-08-15 16:12 UTC (History)
3 users (show)

Fixed In Version: authconfig-6.2.3-1.fc18
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-15 12:12:58 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Patch which fixes the problem (1.80 KB, patch)
2012-06-29 16:45 UTC, Stef Walter
no flags Details | Diff

Description Stef Walter 2012-06-29 16:45:03 UTC
Created attachment 595339 [details]
Patch which fixes the problem

Description of problem:

There are appropriate upstream values for the krb5.conf dns_lookup_realm and dns_lookup_kdc. authconfig should not set these parameters unless explicitly requested to do so. In fact, I'm not sure why it would need to set them at all.

But in any case, upstream kerberos is supposed to work in a configuration-less manner out of the box. authconfig breaks this by setting dns_lookup_realm to false.

Version-Release number of selected component (if applicable):

authconfig-6.2.1-1.fc17

How reproducible:

Every time

Steps to Reproduce:
1. sudo authconfig --updateall --enablewinbind --enablewinbindauth
  
Actual results:

[libdefaults]
 default_realm = AD.THEWALTER.LAN
 dns_lookup_realm = false
 dns_lookup_kdc = false


Expected results:

No unnecessary modifications to krb5.conf, especially messing with defaults.

Comment 1 Tomas Mraz 2012-06-29 19:36:36 UTC
The problem is that these parameters are set so for consistency with SSSD. Especially the dns_lookup_realm is not yet (or at least was not) supported with SSSD.

Comment 2 Stef Walter 2012-06-30 05:02:33 UTC
dns_lookup_realm is set to false by default, so there's no need to be setting it here.

But it's the dns_lookup_kdc = false that really breaks kerberos. Manually configuring kerberos for each realm unrealistic for most users, and is brittle for large domains with multiple kdc's that can fail over and be reconfigured. Using DNS for locating KDC's is the best practice, as it has been for a decade.

IMO, krb5 should be completely configurationless for almost all use cases, and certainly by default.

Comment 3 Tomas Mraz 2012-08-15 12:12:58 UTC
As I did not use your patch but wrote it myself, please test whether it works for you.

Comment 4 Stef Walter 2012-08-15 16:12:24 UTC
Verified that this no longer happens with authconfig-6.2.3.


Note You need to log in before you can comment on or make changes to this bug.