[ZBX-14880] The authentication error is misleading when enabling LDAP authentication Created: 2018 Sep 19  Updated: 2018 Dec 03  Resolved: 2018 Dec 02

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 4.0.0rc1
Fix Version/s: 4.0.3rc1, 4.2.0alpha2, 4.2 (plan)

Type: Problem report Priority: Trivial
Reporter: Oleg Ivanivskyi Assignee: Gregory Chalenko
Resolution: Fixed Votes: 1
Labels: errors, ldap
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2018-09-19 at 14.57.41.png    
Issue Links:
Sub-task
depends on ZBX-1667 ldap connection error shows php detai... Closed
Team: Team D
Sprint: Sprint 43, Sprint 44, Sprint 45, Sprint 46, Nov 2018
Story Points: 1

 Description   

Steps to reproduce:

  1. Enable LDAP authentication
  2. Use dummy string for all of the fields (e.g. "LDAP host: abc")
  3. Click "Test"

Result:
The "Login name or password is incorrect!" error. At the same time, I can see a correct error message in the "Details" (see screenshot)

Expected:
Zabbix displays correct error message (i.e. "Can't contact LDAP server" instead of "Login name or password is incorrect!")



 Comments   
Comment by Oleg Ivanivskyi [ 2018 Sep 19 ]

The Frontend debug is disabled for the user. We should hide the "[zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerAuthenticationUpdate->checkInput() → CControllerAuthenticationUpdate->validateLdap() → CLdapAuthValidator->validate() → CLdap->checkPass() → ldap_bind() in include/classes/ldap/CLdap.php:114]" part from "Details".

gcalenko This sub issue is fixed in ZBX-1667

Comment by Gregory Chalenko [ 2018 Nov 02 ]

RESOLVED in development branch svn://svn.zabbix.com/branches/dev/ZBX-14880

Comment by Gregory Chalenko [ 2018 Nov 28 ]

Fixed in:

  • 4.0.3rc1 r87372
  • 4.2.0alpha2 r87373
Generated at Thu Mar 28 18:10:31 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.