AdamLantos / redmine_http_auth

HTTP Authentication plugin for redmine
MIT License
37 stars 47 forks source link

Redmine 2.x Update #18

Open darksoul42 opened 12 years ago

darksoul42 commented 12 years ago

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 :

ghost commented 11 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:inuser_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.

ghost commented 11 years ago

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?]

kevinfoote commented 11 years ago

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..

froid1911 commented 11 years ago

:+1:

jendamek commented 10 years ago

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:inrender_menu_node' lib/redmine/menu_manager.rb:91:in block in render_menu' lib/redmine/menu_manager.rb:168:inblock in menu_items_for' lib/redmine/menu_manager.rb:165:in each' lib/redmine/menu_manager.rb:165:inmenu_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 dont know, how to fix this problem. Could anyone please point me in the right direction?

Best regards

Jan Mach

phlegx commented 9 years ago

@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?

KingBain commented 9 years ago

@phlegx Having the same issue ... were you able to resolve it ?

phlegx commented 9 years ago

@KingBain Some forks has fix the problem. This fork works for me: https://github.com/tdobrovolskij/redmine_http_auth