Defect #5339
closedLDAP authenication only work if onthefly_register is set (upgrade 0.8.5 to 0.9.3 fails)
0%
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:
- remove the check for "onthefly_register" in line 38, because it seems unnecessary
- 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.
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
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.
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 :-)