Hi i am new to ROR and working on a project where i just want to authenticate a user against our active directory. if username and password is correct i want to store his full name in a session variable and then wants to redirect that user on a specific page. i just need a simple way, how to bind with ldap and how to authenticate a user. thanks in advance. mushiii -- Posted via http://www.ruby-forum.com/.
This might help you get started http://www.zorched.net/2007/06/04/active-directory-authentication-for-ruby-on-rails/ -- Posted via http://www.ruby-forum.com/.
I did some LDAP authentication awhile ago using the ruby-net-ldap gem. I pasted some of the key code here (this is some of the first code I wrote in Ruby/RoR - it works but may not be the most elegant): http://pastie.org/532258 On Jul 2, 9:36 am, "Älphä Blüë" <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> This might help you get started > > http://www.zorched.net/2007/06/04/active-directory-authentication-for... > > -- > Posted viahttp://www.ruby-forum.com/.