pythongssapi / pythongssapi/python-gssapi
OSError: Could not find KfW installation
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 116
- Forks
- 55
- Avg merge
- 1d 24m
- Merged PRs (30d)
- 2
Description
What went wrong?
Loading gssapi on windows throws "OSError: Could not find KfW installation" when there are multiple kinit.exe in the PATH. Specifically, in the case of having the Java JDK being installed it satisfies the "kinit.exe" under that path and ignores the subsequent one pointing to the kerberos installation.
How do we reproduce?
- Install Kerberos somewhere other than c:\Program Files\MIT\Kerberos
- Install JDK
- Add the jdk\bin directory to the path before the Kerberos installation path
Making Kerberos the first directory in the path is obviously a workaround, but ideally the logic for finding the kerberos installation could be enhanced a bit to use "which --all" and validate the correct path.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Windows logic that discovers the Kerberos installation and reproduce the reported PATH order with both the JDK and Kerberos directories present. Verify that discovery checks candidate kinit.exe paths and selects the Kerberos installation rather than the first executable, then confirm loading gssapi succeeds in that setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- authentication, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100