Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extended Error message not shown.. #908

Open
sanket97 opened this issue May 21, 2024 · 9 comments
Open

Extended Error message not shown.. #908

sanket97 opened this issue May 21, 2024 · 9 comments
Labels

Comments

@sanket97
Copy link

Using 1.5.4 version of self-service-password
OS : Ubuntu 23.04.

Extended Errors like "Password is in history" does not show. it appears in log.

have set in config.inc.local.php.

$show_extended_error = true;
any pointer.

Thanks

@coudot
Copy link
Member

coudot commented May 21, 2024

Please use latest version (1.6.0) and see if the problem still occurs.

@sanket97
Copy link
Author

sanket97 commented May 22, 2024 via email

@davidcoutadeur
Copy link

Hello @sanket97

I tried to reproduce the problem with 1.6.0 version. (on debian 12)

The log message is:

[Wed May 22 16:52:33.812838 2024] [php:notice] [pid 38731] [client 127.0.0.1:34438] LDAP - Modify password error 19 (Password is in history of old passwords), referer: http://ssp.example.com/

But there is a clear message displayed to the user: (in a red banner)

Password is in history of old passwords (Password is in history of old passwords)

Could you provide more information on how to reproduce please? At least a complete configuration.

@sanket97
Copy link
Author

sanket97 commented May 23, 2024 via email

@davidcoutadeur
Copy link

Hello,

Here is config.inc.local.php file which is used for this.

I don't see any attachment in the issue, or in the notification mail.

Do I need to enable ldaps ? currently using ldap://

In general: yes, it is recommended, but I don't think it's your problem here. Theoretically, the message in the log and the message in the interface should be coherent.

@sanket97
Copy link
Author

sanket97 commented May 24, 2024 via email

@coudot
Copy link
Member

coudot commented May 24, 2024

$ldap_use_exop_passwd = true;
$ldap_use_ppolicy_control = true;

This does not work, this is a bug in PHP (see https://bugs.php.net/bug.php?id=80820)

If you want to use ppolicy, set exop_passwd to false.

@sanket97
Copy link
Author

sanket97 commented May 24, 2024 via email

@sanket97
Copy link
Author

sanket97 commented May 25, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants