Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Security / December 2006

Tip: Looking for answers? Try searching our database.

Creating Authorization Manager Store through Code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
erich.keane@verizon.net - 04 Dec 2006 15:20 GMT
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
Dominick Baier - 04 Dec 2006 15:56 GMT
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)

> Hi all, thanks in advance for any help you can give.
>
[quoted text clipped - 8 lines]
> Thanks again,
> -Erich
erich.keane@verizon.net - 04 Dec 2006 16:03 GMT
> C# always helps :)
>
[quoted text clipped - 4 lines]
> -----
> Dominick Baier (http://www.leastprivilege.com)

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

> > Hi all, thanks in advance for any help you can give.
> >
[quoted text clipped - 8 lines]
> > Thanks again,
> > -Erich
erich.keane@verizon.net - 04 Dec 2006 16:25 GMT
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/securi
ty/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!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.