ActiveDirectory connector custom error messages
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- php
- Domain
- authentication
Research direction
Compare the Active Directory connector's resolveBindException function with the standard LDAP connector's resolveBindError behavior, including the getCustomTitles() and getCustomDescriptions() methods. Trace how expired-password errors reach core:loginuserpass.twig and verify that the resulting error keys and messages are defined so the missing RESETPASSWORD key no longer causes an exception.
Written by the indexing model from the issue text.
Description
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?
- Dominant language
- PHP
- Stars
- 5
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
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.
More from simplesamlphp/simplesamlphp-module-ldap
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
simplesamlphp/simplesamlphp-module-ldap#60 · 6 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
simplesamlphp/simplesamlphp-module-ldap#3 · 3 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
simplesamlphp/simplesamlphp-module-ldap#2 · 1 comment ·
All issues in simplesamlphp/simplesamlphp-module-ldap
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
hector-jewell/food-delivery-system-for-restaurant-using-php#1311 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Sylius/SyliusGridBundle#501 ·