Ldap authentication in ROR

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

This might help you get started

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