HighTechTalks DotNet Forums  

Using ASP.NET 2.0 Roleprovider against AzManStore in ADAM

ASP.net Security microsoft.public.dotnet.framework.aspnet.security


Discuss Using ASP.NET 2.0 Roleprovider against AzManStore in ADAM in the ASP.net Security forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
griffore@gmail.com
 
Posts: n/a

Default Using ASP.NET 2.0 Roleprovider against AzManStore in ADAM - 12-14-2007 , 11:11 AM






I've been able to setup an AzMan store within ADAM and authorize a
user
against it.

Here's a code snippet:
IAuthorizationProvider azManProvider =
AuthorizationFactory.GetAuthorizationProvider("AzM anProvider");

lblName.Text = User.Identity.Name;
chkIsAuthenticated.Checked =
User.Identity.IsAuthenticated;
lblAuthenticationType.Text =
User.Identity.AuthenticationType;

chkAuthQuery.Checked = azManProvider.Authorize(User,
"Query");
chkAuthQueryStation.Checked =
azManProvider.Authorize(User,
"O:QueryOperation");

All that is well and good however, I expected to use ASP.NET Roles to
query
for the roles I have setup with AzMan.

Roles.GetRolesForUser() returns the following exception:
Exception has been thrown by the target of an invocation.
{"Element not found. (Exception from HRESULT: 0x80070490)"}

My ADAM and IIS instances are on separate servers within the same
domain.
How do I reference the ASP.NET machine account from the IIS machine in
a
local security group on my ADAM box? I need to add this local group to
the Readers role of the AzManStore.

Any help would be greatly appreciated. Thanks.

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.