Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Sean Hussey
RE: Ruby on Rails [ reply ]  
2007-05-25 18:52
In application.rb, you can override authenticate to create a new Net::LDAP object and perform the bind. All it needs to return is true or false (or whatever your particular authenticate method does).

By: Gilles TASSE
RE: Ruby on Rails [ reply ]  
2007-05-25 17:56
1 - build my login system from a plugin ( maybe AAA)
2 - find a way to override the authenticate method with one that performs a bind to the LDAP server.

Is Pure Ruby LDAP tools are involved in the process ?

By: Sean Hussey
RE: Ruby on Rails [ reply ]  
2007-05-25 15:38
The easiest thing might be to use a pre-built authentcation plugin and then just override the authenticate method with one that performs a bind to your LDAP server. Bind as the user intead of getting the password from the LDAP server and comparing the two.

By: Gilles TASSE
Ruby on Rails [ reply ]  
2007-05-25 07:06
In my project i need to connect to LADP server from ruby on rails.

I would be great to be able to have a precise tutorial. In fact, after research I have not yet manage de get the concept of creating a login system using LDAP / Ruby on Rail.

Could you maybe give me some clues ?

Thanks