Forum: Ruby on Rails Authenticating users on different sources

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Fdd3ec0f54361f881820913cc9f5b3cd?d=identicon&s=25 José Netto (jtibu)
on 2009-01-08 06:34
(Received via mailing list)
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!
9cf6e7f81d4339295b86e5fb7d7df49b?d=identicon&s=25 Vishwanath Nayak (nayak)
on 2009-01-08 09:47
(Received via mailing list)
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 <
9cf6e7f81d4339295b86e5fb7d7df49b?d=identicon&s=25 Vishwanath Nayak (nayak)
on 2009-01-08 09:47
(Received via mailing list)
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 <
Fdd3ec0f54361f881820913cc9f5b3cd?d=identicon&s=25 José Netto (jtibu)
on 2009-01-09 02:26
(Received via mailing list)
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!
9cf6e7f81d4339295b86e5fb7d7df49b?d=identicon&s=25 Vishwanath Nayak (nayak)
on 2009-01-09 07:30
(Received via mailing list)
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:

>
>> For this all the methods for auth, signup etc had checks for AD/ DB and
>>> I need to authenticate users on different sources (for instance, local
>>> to take care of this AD authentication process if the user selects the
>>
>>
>>
>
> >
>


--
- NAYAK
This topic is locked and can not be replied to.