simplesamlphp / simplesamlphp/simplesamlphp-module-ldap

ActiveDirectory connector custom error messages

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

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

主要言語
PHP
スター
5
フォーク
14
PR マージ指標
30日以内にマージされた PR はありません

説明

The 'resolveBindException' function in the Active Directory function never gets called when a password is expired. I made a test change by renaming it 'resolveBindError' (taken from standard LDAP connector class) and changing the signature, and now the code gets called but the error messages aren't defined which cause an error when a password is expired:

SimpleSAML\Error\Exception: Key "RESETPASSWORD" for sequence/mapping with keys "ACSPARAMS...." does not exist in core:loginuserpass.twig

I have tried defining custom errors using the getCustomTitles() and getCustomDescriptions() methods but I'm not doing it right, but now I'm wondering if I'm going down the correct path. Any suggestions?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

Active Directory コネクタの resolveBindException 関数を、標準 LDAP コネクタの resolveBindError の動作と比較します。getCustomTitles() メソッドと getCustomDescriptions() メソッドも含めてください。期限切れパスワードのエラーが core:loginuserpass.twig に到達するまでの流れを追跡し、結果として生成されるエラーキーとメッセージが定義されていることを確認して、欠落している RESETPASSWORD キーが例外を引き起こさないようにします。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
php
領域
authentication
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。