Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Authentication with Ruby on Rails

I have website running in my intranet, currently all users login to the website using LDAP - they need to write down their username and password.

I know that in ASP.NET, I can have Windows Authentication, which will remove the login process in my intranet.

How can I do this in Ruby on Rails using Nginx? I saw options for using IIS as proxy.. before I will quit and do this, do you have any idea?

like image 709
Yosi Avatar asked Nov 03 '22 17:11

Yosi


2 Answers

This is answer for you question: http://wiki.phys.ethz.ch/readme/devise_with_ldap_for_authentication_in_rails_3

like image 183
Oleg Rogov Avatar answered Nov 10 '22 21:11

Oleg Rogov


I havn't tested out this module, but this is what you want:

https://github.com/fintler/nginx-mod-auth-kerb

Kerberos is the way to go with this one, there's also an Apache module out there.

I'm not entirely certain where it would give you the Username - let me know if you find where it gets set

like image 37
Paul Sellars Avatar answered Nov 10 '22 21:11

Paul Sellars