Closed MageFroh closed 1 year ago
Yep, that's going to fail parsing. Looks like we treat it internally as a bool
and fallback
is rightfully not a valid boolean string value. Might be a bit before I can tackle this, but PRs are welcome. My initial proposal would be to switch it to something like an enum.
public enum DnsCanonicalization
{
False,
True,
Fallback
}
Describe the bug On my Linux machine (Red Hat Enterprise Linux 9), in
/etc/krb5.conf
,libdefaults.dns_canonicalize_hostname
has valuefallback
.It looks like it's something new: the krb5.conf man page mentions for
dns_canonicalize_hostname
:To Reproduce On such a machine, call
Krb5Config.CurrentUser()
, This throwsSystem.ArgumentException
: Property libdefaults.dns_canonicalize_hostname could not be set.Expected behavior A
Krb5Config
instance is returned.Screenshots If applicable, add screenshots to help explain your problem.
Additional context It looks like
dns_canonicalize_hostname=fallback
is the default for what RHEL 9 installs: this section of the file was not customised.