José Tiburcio Ribeiro Netto
2009-Jan-08 05:33 UTC
Authenticating users on different sources
Hi there folks! I need to authenticate users on different sources (for instance, local database and Active Directory), and make registration (on local db) possible for users who don''t have an AD account.. For the db authentication, I have chosen restful_authentication. This way, new users who are not part of the organization are able to register and use the application. But for the AD auth, I don''t know how to implement it yet. I thought about creating some additional methods on sessions controller to take care of this AD authentication process if the user selects the option of using it''s existing AD account on the login page. Have anyone experimented this scenario? If so, what tips do you have for me? Thanks in advance! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi, I have implemented an application which can authenticate users against db auth or Active Directory based on the configuration set by the admin. But this works either one at a time, not both together. For this all the methods for auth, signup etc had checks for AD/ DB and perform authentication appropriately. Please let me know if you need any more help - NAYAK On Thu, Jan 8, 2009 at 11:03 AM, José Tiburcio Ribeiro Netto < jtibunetto@gmail.com> wrote:> Hi there folks! > > I need to authenticate users on different sources (for instance, local > database and Active Directory), and make registration (on local db) possible > for users who don't have an AD account.. > > For the db authentication, I have chosen restful_authentication. This way, > new users who are not part of the organization are able to register and use > the application. > > But for the AD auth, I don't know how to implement it yet. > > I thought about creating some additional methods on sessions controller to > take care of this AD authentication process if the user selects the option > of using it's existing AD account on the login page. > > Have anyone experimented this scenario? > > If so, what tips do you have for me? > > Thanks in advance! > > > >--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, I have implemented an application which can authenticate users against db auth or Active Directory based on the configuration set by the admin. But this works either one at a time, not both together. For this all the methods for auth, signup etc had checks for AD/ DB and perform authentication appropriately. Please let me know if you need any more help - NAYAK On Thu, Jan 8, 2009 at 11:03 AM, José Tiburcio Ribeiro Netto < jtibunetto@gmail.com> wrote:> Hi there folks! > > I need to authenticate users on different sources (for instance, local > database and Active Directory), and make registration (on local db) possible > for users who don't have an AD account.. > > For the db authentication, I have chosen restful_authentication. This way, > new users who are not part of the organization are able to register and use > the application. > > But for the AD auth, I don't know how to implement it yet. > > I thought about creating some additional methods on sessions controller to > take care of this AD authentication process if the user selects the option > of using it's existing AD account on the login page. > > Have anyone experimented this scenario? > > If so, what tips do you have for me? > > Thanks in advance! > > > >--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
José Tiburcio Ribeiro Netto
2009-Jan-09 01:25 UTC
Re: Authenticating users on different sources
Hi NAYAK! Interesting, but I need both of them authenticating the same time. The AD for the staff and other people of the organization, and db for people outside of the organization. I will try something and if it works, I will post here. Thanks for your response! On Thu, Jan 8, 2009 at 6:46 AM, NAYAK <nayakk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > I have implemented an application which can authenticate users against db > auth or Active Directory based on the configuration set by the admin. But > this works either one at a time, not both together. > > For this all the methods for auth, signup etc had checks for AD/ DB and > perform authentication appropriately. > Please let me know if you need any more help > > - NAYAK > > On Thu, Jan 8, 2009 at 11:03 AM, José Tiburcio Ribeiro Netto < > jtibunetto-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> Hi there folks! >> >> I need to authenticate users on different sources (for instance, local >> database and Active Directory), and make registration (on local db) possible >> for users who don''t have an AD account.. >> >> For the db authentication, I have chosen restful_authentication. This way, >> new users who are not part of the organization are able to register and use >> the application. >> >> But for the AD auth, I don''t know how to implement it yet. >> >> I thought about creating some additional methods on sessions controller to >> take care of this AD authentication process if the user selects the option >> of using it''s existing AD account on the login page. >> >> Have anyone experimented this scenario? >> >> If so, what tips do you have for me? >> >> Thanks in advance! >> >> >> > > > >--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, Can you have two diferent login pages then, else you can do the same by first authenticating with DB if it fails only then with AD NAYAK On Fri, Jan 9, 2009 at 6:55 AM, José Tiburcio Ribeiro Netto < jtibunetto@gmail.com> wrote:> Hi NAYAK! > > Interesting, but I need both of them authenticating the same time. > > The AD for the staff and other people of the organization, and db for > people outside of the organization. > > I will try something and if it works, I will post here. > > Thanks for your response! > > > > On Thu, Jan 8, 2009 at 6:46 AM, NAYAK <nayakk@gmail.com> wrote: > >> Hi, >> >> I have implemented an application which can authenticate users against db >> auth or Active Directory based on the configuration set by the admin. But >> this works either one at a time, not both together. >> >> For this all the methods for auth, signup etc had checks for AD/ DB and >> perform authentication appropriately. >> Please let me know if you need any more help >> >> - NAYAK >> >> On Thu, Jan 8, 2009 at 11:03 AM, José Tiburcio Ribeiro Netto < >> jtibunetto@gmail.com> wrote: >> >>> Hi there folks! >>> >>> I need to authenticate users on different sources (for instance, local >>> database and Active Directory), and make registration (on local db) possible >>> for users who don't have an AD account.. >>> >>> For the db authentication, I have chosen restful_authentication. This >>> way, new users who are not part of the organization are able to register and >>> use the application. >>> >>> But for the AD auth, I don't know how to implement it yet. >>> >>> I thought about creating some additional methods on sessions controller >>> to take care of this AD authentication process if the user selects the >>> option of using it's existing AD account on the login page. >>> >>> Have anyone experimented this scenario? >>> >>> If so, what tips do you have for me? >>> >>> Thanks in advance! >>> >>> >>> >> >> >> > > > >-- - NAYAK --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---