Wiki . Forums . Bugs . Translation . Privacy Policy | Search . Simple . Advanced | Reports . Help | Matrix . 10.x . 11.x . 12.x . 13.x . Future . Recent . Contribs

Bug 13765 - SManager will not accept password if changed in ssh console
Summary: SManager will not accept password if changed in ssh console
Status: CONFIRMED
Alias: None
Product: SME Server 11.X
Classification: SME Server
Component: server-manager (show other bugs)
Version: 11.0
Hardware: x86_64 ---
: P3 normal (vote)
Target Milestone: 11.1
Assignee: SME Server bug team
QA Contact: SME Server bug team
URL:
Depends on:
Blocks:
 
Reported: 2026-09-30 14:22 CEST by Graeme Fleming
Modified: 2026-10-11 18:52 CEST (History)
4 users (show)

See Also:
Package: ---


Attachments
failed login to SM (20.39 KB, image/jpeg)
2026-10-01 00:57 CEST, Terry Fage
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Graeme Fleming 2026-09-30 14:22:15 CEST
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.
Comment 16 Jean-Philippe Pialasse 2026-10-11 06:31:44 CEST
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.
Comment 15 Terry Fage 2026-10-02 09:55:29 CEST
NFR please, Brian is already looking at this re db config entries, and yes was not in old Server Manager
Comment 14 Graeme Fleming 2026-10-01 16:46:46 CEST
(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?
Comment 13 Terry Fage 2026-10-01 07:40:47 CEST
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
Comment 12 Graeme Fleming 2026-10-01 05:51:48 CEST
(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)?
Comment 11 Terry Fage 2026-10-01 04:55:18 CEST
and answer not a rabbit hole
Comment 10 Jean-Philippe Pialasse 2026-10-01 04:09:33 CEST
after: 
passwd admin
passwd

run :
signal-event password-modify admin
Comment 9 Terry Fage 2026-10-01 03:46:11 CEST
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
Comment 8 Terry Fage 2026-10-01 03:42:36 CEST
[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
Comment 7 Jean-Philippe Pialasse 2026-10-01 03:41:51 CEST
login is done using ldap.  
passwd cmd will only reset password for unix account. not ldap.
Comment 6 Terry Fage 2026-10-01 03:33:14 CEST
maybe not or something not playing even with local ip of wkstn added as allowed still get the Access blocked
Comment 5 Terry Fage 2026-10-01 02:32:57 CEST
confirm wait 30 mins which is the F2B timeout and admin has SM login OK
Comment 4 Terry Fage 2026-10-01 01:36:54 CEST
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
Comment 3 Terry Fage 2026-10-01 00:57:55 CEST
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
Comment 2 Graeme Fleming 2026-09-30 18:26:19 CEST
.. 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?
Comment 1 John Crisp 2026-09-30 16:05:35 CEST
(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.