Project

General

Profile

Actions

Defect #4483

open

LDAP authentication with Redmine doesn't return an error when credentials used to bind to LDAP are incorrect

Added by Joe Heck over 14 years ago. Updated over 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
LDAP
Target version:
-
Start date:
2009-12-24
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

When incorrect credentials are used in LDAP authentication with Redmine, the search mechanism will always silently fail because the code in 0.8.7 doesn't check for bind success before searching.

I'm using ruby 1.8.5, rails 2.1.2, passenger 2.2.8, redmine 0.8.7, MySQL 5, on RHEL5.

I added the debugging line:

logger.debug "Connection #{ldap_con} bind result was #{ldap_con.bind}" if logger && logger.debug?

to the code at /app/models/auth_source_ldap.rb to identify that the error occuring was incorrect credentials. However, silent failure seems to be a bug, especially since the "test" link on the auth_sources page appeared to work correctly.


Files

SettingLDAP.png (95.5 KB) SettingLDAP.png Yuichi HARADA, 2020-11-24 06:09
fixed-4483.patch (2.65 KB) fixed-4483.patch Yuichi HARADA, 2020-11-24 06:17
Actions

Also available in: Atom PDF