pythongssapi / pythongssapi/python-gssapi

OSError: Could not find KfW installation

オープン
#290 コメント 10 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Python
スター
116
フォーク
55
平均マージ
1日 24分
マージ済み PR(30日)
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. リポジトリをフォークし、ブランチを切って変更します。
  4. 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 を短くまとめたダイジェスト。