Home All Groups Group Topic Archive Search About

Creating Authorization Manager Store through Code

Author
4 Dec 2006 3:20 PM
erich.keane
Hi all, thanks in advance for any help you can give.

I am attempting to create a deployment engine, and one of the things it
needs to do is create an XML Authorization Manager Store (AzManager
Store).  I have searched, and poured over the documentation, and cannot
seem to find something to do this.

If someone could point me in the right direction, I would be grateful.
I am coding in C#.Net if it helps.

Thanks again,
-Erich

Author
4 Dec 2006 3:56 PM
Dominick Baier
C# always helps :)

Have a look at the import/export tool i have on my blog - it shows a lot
of the APIs

http://www.leastprivilege.com/AzManBulkImportUpdate.aspx
-----
Dominick Baier (http://www.leastprivilege.com)

Show quoteHide quote
> Hi all, thanks in advance for any help you can give.
>
> I am attempting to create a deployment engine, and one of the things
> it needs to do is create an XML Authorization Manager Store (AzManager
> Store).  I have searched, and poured over the documentation, and
> cannot seem to find something to do this.
>
> If someone could point me in the right direction, I would be grateful.
> I am coding in C#.Net if it helps.
>
> Thanks again,
> -Erich
Author
4 Dec 2006 4:03 PM
erich.keane
Dominick Baier wrote:
> C# always helps :)
>
> Have a look at the import/export tool i have on my blog - it shows a lot
> of the APIs
>
> http://www.leastprivilege.com/AzManBulkImportUpdate.aspx
> -----
> Dominick Baier (http://www.leastprivilege.com)
>

I am still looking at the code, but it looks like it should help,
thanks a bunch!

Show quoteHide quote
> > Hi all, thanks in advance for any help you can give.
> >
> > I am attempting to create a deployment engine, and one of the things
> > it needs to do is create an XML Authorization Manager Store (AzManager
> > Store).  I have searched, and poured over the documentation, and
> > cannot seem to find something to do this.
> >
> > If someone could point me in the right direction, I would be grateful.
> > I am coding in C#.Net if it helps.
> >
> > Thanks again,
> > -Erich
Author
4 Dec 2006 4:25 PM
erich.keane
For anyone who arrives here via search, or just needs the solution
(Thanks in entirety to      Dominick Baier for the reply above.  His code
solved this problem entirely!)

In the Initialize function
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secauthz/security/azauthorizationstore_initialize.asp)
if the flag is '1', it will create the file for you!

this is the code that is of importance from Dominick Baier's post.

private const int AZ_AZSTORE_FLAG_CREATE = 1;
IAzAuthorizationStore destStore = new AzAuthorizationStoreClass();
destStore.Initialize(AZ_AZSTORE_FLAG_CREATE, destUrl, null);


Thanks again!