If I mess up passwords then I usually get in to the console via recovery methods & reset the root password. Once this is done & I can login on the local console I reset the admin account to match root. If I try to use the freshly reset admin password SManager rejects it; eventually it says too many failures & locks me out, seemingly with no way to reset the count or to manage this behaviour. I've tried this twice on 2 fresh installs. BTW - where is the info re managing this lock out stuff.
more inportant, if you change password using passwd admin in cli it will only update /etc/{passwd,shadow} not ldap db. before sme 11, manager was using unix auth. now it is using ldap. ao you need to propagate the password change to ldap or you will fail to login. this is not limited to admin but will occurs to any user.
NFR please, Brian is already looking at this re db config entries, and yes was not in old Server Manager
(In reply to Terry Fage from comment #13) > no not f2b, JP posted this in Rocket > > Login.pm > my $MAX_LOGIN_ATTEMPTS = 3; > my $DURATION_BLOCKED = 30 * 60; # access blocked for 30 min > my $TIMEOUT_FAILED_LOGIN = 1; # base delay (seconds) - doubled > per attempt, see login() > my $RESET_DURATION = 2 * 60 * 60; # 2 hours for resetting > > hard coded many moons ago, at worst need to add the details re login > attempts etc to wiki that it also now covers admin SM login, at best work on > making it configurable .. thanks Terry & JP for the info, in all my years of using SME I've never hits this before so thought it might have been a new thing. Having it documented would be useful. Getting the number of failed logins plus the duration templated would be excellent. Should I add an NFR for this or will this bug suffice?
no not f2b, JP posted this in Rocket Login.pm my $MAX_LOGIN_ATTEMPTS = 3; my $DURATION_BLOCKED = 30 * 60; # access blocked for 30 min my $TIMEOUT_FAILED_LOGIN = 1; # base delay (seconds) - doubled per attempt, see login() my $RESET_DURATION = 2 * 60 * 60; # 2 hours for resetting hard coded many moons ago, at worst need to add the details re login attempts etc to wiki that it also now covers admin SM login, at best work on making it configurable
(In reply to Jean-Philippe Pialasse from comment #10) > after: > passwd admin > passwd > > run : > signal-event password-modify admin .. ah, the mist clears :-) I just found this event on the server & thought it might be relevant. Thanks Any update on how to manage the failed login lockout, is it fail2ban (as I have not changed anything post initial install)?
and answer not a rabbit hole
after: passwd admin passwd run : signal-event password-modify admin
OK, I may have dived down a rabbit hole with this bug and ended up following another path, suffice to say details of what happens on multi failed login of admin to SM is not documented anywhere that I can find
[root@sme11 filter.d]# fail2ban-client status smanager Status for the jail: smanager |- Filter | |- Currently failed: 0 | |- Total failed: 6 | `- File list: /var/log/smanager/smanager.log `- Actions |- Currently banned: 1 |- Total banned: 1 `- Banned IP list: 0.0.0.3
login is done using ldap. passwd cmd will only reset password for unix account. not ldap.
maybe not or something not playing even with local ip of wkstn added as allowed still get the Access blocked
confirm wait 30 mins which is the F2B timeout and admin has SM login OK
Some early LLM help this may be related to an issue with fail2ban and a poorly configured read of the smanager log, more to follow, ban is for 30 mins default fai2ban settings maxretry = 3 findtime = 300 bantime = 1800
Created attachment 7140 [details] failed login to SM Confirm behavior of lockout on failed login attempts to SM Further investigation needed, as not able to determine the lockout period on admin
.. both were reset but the admin one was done after the reboot into normal mode, perhaps that's the reason it didn't accept it. Thanks for the heads up. Where is the info on the login lockout after failed login attempts, can't see it in the docs?
(In reply to Graeme Fleming from comment #0) > BTW - where is the info re managing this lock out stuff. In the docs as normal. https://wiki.koozali.org/SME_Server:Documentation:FAQ "Reset the root and admin password" https://wiki.koozali.org/SME_Server:Documentation:FAQ:Section01#For_version_10_on Things change between versions so worth a good read. You need to set both the root AND admin passwords now. You can also use your Rocket account to ask things like this.