プロジェクト

全般

プロフィール

Vote #62709

完了

LDAP authentication without password

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
高め
担当者:
-
カテゴリ:
Accounts / authentication_7
対象バージョン:
開始日:
2008/02/22
期日:
進捗率:

0%

予定工数:
category_id:
7
version_id:
1
issue_org_id:
714
author_id:
425
assigned_to_id:
0
comments:
5
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

I configured LDAP authentication using ActiveDirectory.

Users are able to log in by their username/password, but they also can log in with empty password.

If they enter wrong password (which is not an empty string) they got the "Invalid user or password" message.

I think the problem is in ruby-net-ldap. It is used in @/app/models/auth_source_ldap.rb@ around line 50:

@# authenticate user@
@ldap_con = initialize_ldap_con(dn, password)@
@return nil unless ldap_con.bind@

@ldap_con.bind@ returns true when empty string was given as password.

Redmine version: v0.6.3
ruby-net-ldap version: 0.0.4


journals

You are right. The same thing here.
Authentication againt a Novell eDirecoty (LDAP)
with an empty password let's everyone in...
--------------------------------------------------------------------------------
Confirmed - the same behavior when authenticating against MS Active Directory...
--------------------------------------------------------------------------------
I can not reproduce this problem with openldap. Anyway, the fix is committed in trunk (r1169) and 0.6 branch (r1170).

0.6.3 users can apply this patch to fix it:
http://www.redmine.org/repositories/diff/redmine?rev=1170
--------------------------------------------------------------------------------
Thank you, the fix is working.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリAccounts / authentication_7 にセット
  • 対象バージョン0.7_1 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0