Description of problem: [Hammer] - Wrong Error Message/Return code(Internal server error) getting after exceeding the 'failed_login_attempts_limit' Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: [root@satellite]# hammer -u admin -p changeme settings set --name failed_login_attempts_limit --value 5 Setting [failed_login_attempts_limit] updated to [5]. [root@satellite ~]# for i in 1 2 3 4 5; do hammer -u admin -p WRONG_PASS user list; done Unable to authenticate user admin Unable to authenticate user admin Unable to authenticate user admin Unable to authenticate user admin Unable to authenticate user admin [root@satellite ~]# hammer -u admin -p changeme user list undefined local variable or method `logger' for #<Foreman::BruteforceProtection:0x00007f80b6979698> Actual results: Error Message is shown as 'undefined local variable or method `logger' for #<Foreman::BruteforceProtection:0x00007f80b6979698>' and error code is '70' Expected results: Error Message is Incorrect and Return code should be '129' Additional info: Please take a look log attachment
Created redmine issue https://projects.theforeman.org/issues/28860 from this bug
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/28860 has been resolved.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2020:1454