Project

General

Profile

Actions

Defect #5339

closed

LDAP authenication only work if onthefly_register is set (upgrade 0.8.5 to 0.9.3 fails)

Added by Daniel Bond over 14 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
LDAP
Target version:
-
Start date:
2010-04-16
Due date:
% Done:

0%

Estimated time:
1.00 h
Resolution:
Invalid
Affected version:

Description

I've been trying to upgrade Redmine 0.8.5 to 0.9.3, but after upgrade LDAP logins stopped working. I've poked a bit around with ruby-debug, and the source of the problem in models/auth_source.rb line 38:

=> 38      AuthSource.find(:all, :conditions => ["onthefly_register=?", true]).each do |source|

The reason LDAP logins didn't work for me, was that "onthefly_register" setting was not set. I suspect this could affect other users upgrading to 0.9.3 also.

I have a couple suggestions how to fix it:

  1. remove the check for "onthefly_register" in line 38, because it seems unnecessary
  2. update the UpgradingRedmine wiki-page to mention how to fix it. (or mention in changelog)

I'd be happy to fix this, but would like input on how to fix it, so I'm more certain it's the right thing to do.

Actions #1

Updated by Daniel Bond over 14 years ago

I see the user allready is registered in the database (with type set to NULL, if that matters). But when I turn on "onthefly_register", I can login, but the user is asked to register details like email again.

I tried registering my details again, and get the exception:

SQLite3::SQLException: no such table: member_roles

Actions #2

Updated by Daniel Bond over 14 years ago

  • Status changed from New to Resolved

My bad. I found the cause. I was testing to much, and had a database which wasn't fully migrated.

Actions #3

Updated by Felix Schäfer over 14 years ago

  • Status changed from Resolved to Closed
  • Resolution set to Invalid

I was thinking that, but hadn't had the time to post. Glad you found that out :-)

Actions

Also available in: Atom PDF