Commit fa27de4
committed
Fix cross-realm Kerberos credential lookup in CCache
CCache.parseFile() failed to find service tickets and TGTs in
cross-realm scenarios because it hardcoded the lookup realm to the
ccache's default principal realm. When a ticket was stored under a
different realm (e.g. HOST/target@CHILD.DOMAIN vs the ccache's
PARENT.DOMAIN), the lookup missed it entirely.
Add fallback searches that scan all credentials by SPN prefix
regardless of realm. This fixes atexec, dcomexec, smbexec, wmiexec,
and psexec when using cross-domain Kerberos tickets.1 parent 20c643e commit fa27de4
1 file changed
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
636 | 636 | | |
637 | 637 | | |
638 | 638 | | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
639 | 649 | | |
640 | 650 | | |
641 | 651 | | |
| 652 | + | |
642 | 653 | | |
643 | 654 | | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
644 | 664 | | |
645 | 665 | | |
646 | 666 | | |
| |||
0 commit comments