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

Sympa should not lock out users using password authentication with LDAP #1132

Closed
tmclaren opened this issue Mar 19, 2021 · 6 comments · Fixed by #1136
Closed

Sympa should not lock out users using password authentication with LDAP #1132

tmclaren opened this issue Mar 19, 2021 · 6 comments · Fixed by #1136
Labels
Milestone

Comments

@tmclaren
Copy link

Provide listmasters an ability to reset the 'max_wrong_password' value for a user through the user interface. The current approach requires backend interaction:

  1. A backend mysql call
    mysql> update user_table set wrong_login_count_user = 0 where email_user like "someone@somewhere.edu";
  2. change the 'max_wrong_password' to something larger that the current value and restart the service.
    E.g. max_wrong_password 99

Expected Behavior

Listmasters can reset this user account setting from the web UI

Current Behavior

A CLI interaction with the backend as described above.

Possible Solution

An additional field in [Sympa admin] > Users
checkbox: [ ] Reset Wrong Password Count [input field: email@address.edu]

Context

An end user had their count incremented above the max allowed and was locked out from managing their mail lists for over a week.

see solution

@ikedas
Copy link
Member

ikedas commented Mar 20, 2021

The description about max_wrong_password parameter says:

If this limit is reached, the account is locked until the user renews their password. (...)

So you can suggest the locked-out user that they may select "Forgot password" link to renew password by their own.

@tmclaren
Copy link
Author

Yes - that is the case for a local password. This became an issue with an LDAP (AD) authentication, the user reset their LDAP password, verified it worked with other campus services using that approach but they were still locked out of Sympa because they exceeded the max_wrong_password value. The server param is set to 21 and the value in his user_table was 38.

Aside: does that user_table value continually increment or is there a reset/timeout to take it back to the default, /N? In this case, it didn't reset over time or w.r.t. the session cookie.

@ikedas
Copy link
Member

ikedas commented Mar 23, 2021

I think the policy of account lockout with LDAP authentication would be better to be managed by directory server instead of Sympa by its own. I'll submit a PR later.

@ikedas ikedas added the bug label Mar 23, 2021
@ikedas ikedas changed the title reset 'max_wrong_password' for a user’s account through the UI Sympa should not lock out users using password authentication with LDAP Mar 23, 2021
@ikedas
Copy link
Member

ikedas commented Mar 26, 2021

Hi @tmclaren , if possible, can you check this patch? It no longer may not increment wrong_login_count_user field in database with ldap authentication.

If possible, this change will be included in the release in near feature.

@tmclaren
Copy link
Author

tmclaren commented Mar 26, 2021 via email

@tmclaren
Copy link
Author

tmclaren commented Apr 1, 2021

I took a look at the patch and it looks straight forward locking the max_wrong_password increment to local / native login. We're currently running 6.1 and the Auth.pm logic is slightly different so I won't be able to apply it there. I'm in the process of creating a 6.2 server and will test it when it's up an running.

@ikedas ikedas added this to the 6.2.64 milestone Apr 12, 2021
ikedas added a commit that referenced this issue Apr 27, 2021
Sympa should not lock out users using password authentication with LDAP (#1132)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants