プロジェクト

全般

プロフィール

Vote #66675

完了

Revisions r3453 and r3454 broke On-the-fly user creation with LDAP

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
LDAP_28
対象バージョン:
開始日:
2010/02/23
期日:
進捗率:

100%

予定工数:
category_id:
28
version_id:
14
issue_org_id:
4918
author_id:
10359
assigned_to_id:
5
comments:
6
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Revisions r3453 and r3454 broke On-the-fly user creation with LDAP

When attempting to enter a valid username and password for a user existing in AD, but not in Redmine I'm getting the following error (production.log):

Processing AccountController#login (for 192.168.0.100 at 2010-02-23 13:00:27) [POST]
  Parameters: {"back_url"=>"http%3A%2F%2Flocalhost", "action"=>"login", "authenticity_token"=>"cBCdZZoPF6hXV2QeqgVcd/BKAkYH9laBDjRKdSSSA10=", "username"=>"user1", "controller"=>"account", "password"=>"[FILTERED]", "login"=>"Login »"}

ActiveRecord::UnknownAttributeError (unknown attribute: dn):
  app/models/user.rb:114:in `new'
  app/models/user.rb:114:in `try_to_login'
  app/controllers/account_controller.rb:140:in `password_authentication'
  app/controllers/account_controller.rb:35:in `login'

Rendering C:/webserver/railsapps/redmine/public/500.html (500 Internal Server Error)

Reverting only app\models\auth_source_ldap.rb to r3452 fixes the issue and user gets created in Redmine.


journals

I'm running into this exact same issue too.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
I'll fix this. It's odd that the tests didn't catch it.
--------------------------------------------------------------------------------
I've fixed this in r3485 and also included the unit test that I thought existed already (it was on a client's branch only). Sorry about introducing the bug.
--------------------------------------------------------------------------------
I'm working with redmine 2.5.1 and I'm getting this erros with valid accounts. Some accounts are created, but others aren't.
--------------------------------------------------------------------------------
Adriano Machado wrote:
> I'm working with redmine 2.5.1 and I'm getting this erros with valid accounts. Some accounts are created, but others aren't.

Do not post closed issue with target version.
Please post to forum or create issue with more details.
--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリLDAP_28 にセット
  • 対象バージョン1.0.0 (RC)_14 にセット

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

いいね!0
いいね!0