CSLA Based Application using ADAM for authentication

CSLA Based Application using ADAM for authentication

Old forum URL: forums.lhotka.net/forums/t/4462.aspx


markme posted on Wednesday, March 05, 2008

Has anyone, is it possible to utilize Active Directory Application Mode (ADAM) for authentication with a CSLA object based application?  I know that CSLA supports Windows authentication so, in theory, this should be possible.  Has anyone tried?  Did it work?  Any headaches?

JCSoRocks replied on Thursday, April 10, 2008

Did you ever have any success with this? I have a preexisting ADAM based authentication and authorization framework that I'm trying to port over to CSLA. At the moment I'm just working off of the book and others' examples to try and hook my stuff into it. The only thing I'm still trying to figure out is how to handle the actual calls to the ADAM server. In the examples I've seen so far the DataPortal is used for calls to SQL server. It seems though, that you can slap anything you want in there. Which, if that's the case, then I should be able to just take the Criteria object, send the username / password to my ADAM code for authentication and then load the roles. (Sounds easy when you just type it all in one sentence).

To anyone providing assistance - I'm new to this whole CSLA thing so bear with me if my questions seem obvious!

-John

sergeyb replied on Thursday, April 10, 2008

I never used ADAM, but you are correct I believe.  Simply put your code into YourCustomPrincipal.Login method and have it populate roles and validate the password/user name combination.  If you look at the project tracker Principal and Identity classes, you will see the example on how to authenticate against SQL server.  That is the code you need to replace with ADAM calls.

 

 

Sergey Barskiy

Senior Consultant

office: 678.405.0687 | mobile: 404.388.1899

cid:_2_0648EA840648E85C001BBCB886257279
Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

 

From: JCSoRocks [mailto:cslanet@lhotka.net]
Sent: Thursday, April 10, 2008 4:23 PM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] CSLA Based Application using ADAM for authentication

 

Did you ever have any success with this? I have a preexisting ADAM based authentication and authorization framework that I'm trying to port over to CSLA. At the moment I'm just working off of the book and others' examples to try and hook my stuff into it. The only thing I'm still trying to figure out is how to handle the actual calls to the ADAM server. In the examples I've seen so far the DataPortal is used for calls to SQL server. It seems though, that you can slap anything you want in there. Which, if that's the case, then I should be able to just take the Criteria object, send the username / password to my ADAM code for authentication and then load the roles. (Sounds easy when you just type it all in one sentence).

To anyone providing assistance - I'm new to this whole CSLA thing so bear with me if my questions seem obvious!

-John


Copyright (c) Marimer LLC