Commit 4d148da
committed
fix: use target FQDN directly for Kerberos SPN when host contains a dot
Reconstructing the remote name as {netbios_hostname}.{targetDomain} produces
the wrong SPN when a host's DNS suffix differs from the AD domain name
(e.g. host.aepsc.com registered in AD vs the constructed host.corp.aepsc.com),
resulting in KDC_ERR_S_PRINCIPAL_UNKNOWN. Use self.host directly when it is
already an FQDN, matching Impacket's smbclient behaviour.1 parent 9a39a07 commit 4d148da
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
| 285 | + | |
| 286 | + | |
286 | 287 | | |
287 | 288 | | |
288 | 289 | | |
| |||
0 commit comments