Latest version of rails/ruby and using Ruby-Net-Ldap
I am a little confused on implementing a LDAP authentication mechanism
with rails. I have successfully made a ruby script which will
authenticate with my ldap server but I can''t seem to get it to work
within rails.
Does the authentication definitions aka. ldap.con { :host => xyz,
:method => simple} go into by method or controller?
I can create a view and define my login/password textfield and then
submit those values to a function, but I am not getting any response.
I apologize for the newbish terminology but I am not a season ruby
developer and am still learning? Any hints for pointing my in the right
direction?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
script/console is great for debugging. Code snippets can help people figure out how to help you. I''ve never worked with LDAP, but I guarantee if you go into the console and call your methods, you''ll learn something, probably a lot. Ian Anderson wrote:> > Latest version of rails/ruby and using Ruby-Net-Ldap > > I am a little confused on implementing a LDAP authentication mechanism > with rails. I have successfully made a ruby script which will > authenticate with my ldap server but I can''t seem to get it to work > within rails. > > Does the authentication definitions aka. ldap.con { :host => xyz, > :method => simple} go into by method or controller? > > I can create a view and define my login/password textfield and then > submit those values to a function, but I am not getting any response. > > I apologize for the newbish terminology but I am not a season ruby > developer and am still learning? Any hints for pointing my in the right > direction? >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Did you take a look at the existing LDAP things for rails? http://wiki.rubyonrails.org/rails/pages/Simple+LDAP+Authenticator http://wiki.rubyonrails.org/rails/pages/HowtoAuthenticateViaLdap Ian Anderson wrote:> > Latest version of rails/ruby and using Ruby-Net-Ldap > > I am a little confused on implementing a LDAP authentication mechanism > with rails. I have successfully made a ruby script which will > authenticate with my ldap server but I can''t seem to get it to work > within rails.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---