Commit 586a832
authored
Fix proxy SPNego authentication to respect krb5.conf canonicalization settings. (#541)
This PR changes `SPNegoSchemeFactory` constructor in `ProxyUtils.java`
to use `useCanonicalHostname=false`, deferring hostname canonicalization
to the Kerberos library based on `krb5.conf` configuration instead of
forcing it at the SDK level.
The previous implementation forced hostname canonicalization for proxy
Kerberos authentication, overriding user-configured `krb5.`conf settings
(rdns, dns_canonicalize_hostname). This caused authentication failures
in environments with specific Kerberos configurations.
Client libraries should respect system Kerberos configuration rather
than override it. This fix makes the SDK compliant with standard
Kerberos behavior.
**Migration note:** Users whose non-compliant Kerberos setups were
accidentally working due to forced canonicalization may need to verify
their `krb5.conf` settings are correctly configured.1 parent 33d8df7 commit 586a832
File tree
2 files changed
+6
-1
lines changed- databricks-sdk-java/src/main/java/com/databricks/sdk/core/utils
2 files changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
132 | 135 | | |
133 | 136 | | |
134 | 137 | | |
| |||
0 commit comments