pythongssapi / pythongssapi/python-gssapi

OSError: Could not find KfW installation

未關閉
#290 10 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

主要語言
Python
星號
116
分支
55
平均合併
1 天 24 分鐘
30 天內合併 PR
2

描述

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?
  1. Install Kerberos somewhere other than c:\Program Files\MIT\Kerberos
  2. Install JDK
  3. 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.

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

先定位用於尋找 Kerberos 安裝的 Windows 邏輯,並在 JDK 與 Kerberos 目錄同時存在的情況下重現回報的 PATH 順序。確認探索程序會檢查候選的 kinit.exe 路徑,並選取 Kerberos 安裝而不是第一個可執行檔,接著確認在該設定中載入 gssapi 成功。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
authentication, operating-systems
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。