Azman Help

From: Weide Zhang (WeideZhang_at_discussions.microsoft.com)
Date: 06/17/05


Date: Fri, 17 Jun 2005 09:40:12 -0700

I have 2 questions,
first, when i use Azman to create application store in C#, why it always
says at the first run that "System.UnauthorizedAccessException". However, the
xml storage is correctly created and nothing seems wrong when I open MMC to
see its content. In the second and third run, there are no such exception.
But I wonder how that can happen? I am using Windows XP Prof.

the code snippet declaring application store looks like as follows:

try
{
store = new AzAuthorizationStoreClass();
store.Initialize(1, @"msxml://c:\xml\library.xml", null);
store.Submit(0,null);
}
catch(COMException e)
{
Console.WriteLine("Store already exists");
}
catch(Exception e)
{
Console.WriteLine(e.Message);

}

store.Initialize(2, @"msxml://c:\xml\library.xml", null);

try
{
app2 = store.CreateApplication("library", null);
app2.Submit(0,null);
}
catch(COMException e)
{
Console.WriteLine("Application Already Exists");

}

Another question is how to define more than 3 level hierarchical roles into
AzMan? Are they all defined into roles or something else? How to represent
relationships? I know one kind of method is to define task and set
isroledefinition attribute into true. However, when I use such method
programmatically I can not see more than 3 level hierarchical representation
in Azman MMC. Any one can share some hint on this? Thanks



Relevant Pages

  • AzMan problems -- InvalidCastException
    ... I cannot find a newgroup dedicated to AzMan so if anyone has any ideas on ... Client requests come in over .NET remoting. ... the store and open the application for every request, ... almost always get an interop error the error is "InvalidCastException ...
    (microsoft.public.platformsdk.security)
  • AzMan threading problems
    ... I cannot find a newgroup dedicated to AzMan so if anyone has any ideas on ... Client requests come in over .NET remoting. ... the store and open the application for every request, ... almost always get an interop error the error is "InvalidCastException ...
    (microsoft.public.dotnet.security)
  • Re: Using local AzMan XML store from Win32 Service
    ... but what does IIRC stand for? ... However, to host the AzMan store in AD, you must have ... Windows Server 20003 --- at least that's what I remember. ... >> XML store from a process running as a Win32 service. ...
    (microsoft.public.dotnet.security)
  • Re: Azman Help
    ... This newsgroup is for questions about security in Access, ... > the code snippet declaring application store looks like as follows: ... > Another question is how to define more than 3 level hierarchical roles ... > AzMan? ...
    (microsoft.public.access.security)
  • Re: AzMan Still the way to go?
    ... The main idea with AzMan is the concept of programming against operations. ... The main idea behind the XML store is that you need a place to store the ... planning on having the whole site use IIS windows authentication. ...
    (microsoft.public.dotnet.framework.aspnet.security)