Open darksoul42 opened 12 years ago
Thanks a lot for your effort darksoul42! I can manage to make the login work again with your patch, however the autoregistration form still raises errors:
NameError (undefined local variable or method httpauthselfregister_url' for #<WelcomeController:0xbc385d8>): app/controllers/application_controller.rb:84:in
user_setup'
If I access /httpauth-selfregister directly (as in previous versions) I get some exception: ActionController::RoutingError (No route matches {:action=>"register", :controller=>"registration"}):
Same with redmine 2.1.x and 2.2.x.
Does anybody of the active users have the scenario where self-register is enabled? Perhabs we could work together to make this 2.x compliant. Any help would be appreciated.
With all my changes I could prevent the exception, but the httpauthselfregister-page shows up just empty without a form.
[Or even worse: Is this problem not arising on your installations with self-register enabled?]
jpmschuler ... I am actively using self-register, Yes..
I will see what I have for routes .. I might have had to change something local that is not in the code..
:+1:
Hi,
I tried to install your plugin, but I am still getting the following error:
ActionController::RoutingError (No route matches {:controller=>"httpauth-login"}):
lib/redmine/menu_manager.rb:150:in render_single_menu_node' lib/redmine/menu_manager.rb:102:in
render_menu_node'
lib/redmine/menu_manager.rb:91:in block in render_menu' lib/redmine/menu_manager.rb:168:in
block in menu_items_for'
lib/redmine/menu_manager.rb:165:in each' lib/redmine/menu_manager.rb:165:in
menu_items_for'
lib/redmine/menu_manager.rb:90:in render_menu' app/views/layouts/base.html.erb:23:in
_app_views_layouts_base_html_erb___134226875744948074_34903060'
Sadly, I dont know anything about Rails, so I don
t know, how to fix this problem. Could anyone please point me in the right direction?
Best regards
Jan Mach
@ghost I get the same error as you:
NameError (undefined local variable or method `httpauthselfregister_url' for #<WelcomeController:0x000000079849f8>):
app/controllers/application_controller.rb:100:in `user_setup'
Any idea?
@phlegx Having the same issue ... were you able to resolve it ?
@KingBain Some forks has fix the problem. This fork works for me: https://github.com/tdobrovolskij/redmine_http_auth
I coded the following patch to enable redmine_http_auth to be used with Redmine 2.x (at work, with an Apache 2.x + mod_ldap setup). Tested on Redmine 2.1.2 with Rails 3.2.8
The patch itself : http://www.yomi.darkbsd.org/~darksoul/redmine_http_auth-for-redmine-2x.patch
The patched archive (from master branch) : http://www.yomi.darkbsd.org/~darksoul/redmine_http_auth-for-redmine-2x.tar.gz
The patch includes :