simplesamlphp / simplesamlphp/simplesamlphp-module-ldap
ActiveDirectory connector custom error messages
还没有人认领这个 Issue。
- 主要语言
- 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?
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
将 Active Directory connector 的 resolveBindException 函数与标准 LDAP connector 的 resolveBindError 行为进行比较,包括 getCustomTitles() 和 getCustomDescriptions() 方法。跟踪密码过期错误如何到达 core:loginuserpass.twig,并验证生成的错误键和消息已定义,从而不再因缺少 RESETPASSWORD 键而引发异常。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- php
- 领域
- authentication
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100