We have a product with a fairly extensive library of code for creating, updating, and accessing an AzMan repository utilizing ADAM for the backend. It all works quite well. However, it doesn't really work on Vista (apparently due to issues with ADAM) and since AzMan on Vista can use MS-SQL Server as its backend repository, we thought we could just change the connection string and we'd be good to go.
Unfortunately, that doesn't seem to be the case. The store seems to get created correctly, and we can create an application correctly within the store, but when we try to assign the user as policy admin to the application, we get an "ACCESS DENIED" error. Here is a code snippet:
// NOTE: This is set based on whether connecting to ADAM (XP) or MS-SQL (Vista)
string connection = "";
// Initialize storeConsole.WriteLine("Initializing store");AzAuthorizationStoreClass azStore = new AzAuthorizationStoreClass();azStore.Initialize(5, connection, null);
Console.WriteLine("Add system policy administrator");azStore.AddPolicyAdministrator(ID.User.Value, null);azStore.Submit(0, null);
// Create System Application GroupsConsole.WriteLine("Adding groups");
// Add "Administrator Group"appGroup = azStore.CreateApplicationGroup("System Administrator Group", null);appGroup.Submit(0, null);
// Add "
View Complete Post