Rating: No reviews yet
Downloads: 336
Released: Apr 17, 2009
Updated: Apr 17, 2009 by aferende
Dev status: Stable Help Icon

Recommended Download

Application NetSqlAzMan Core & Snap-In
application, 8176K, uploaded Apr 17, 2009 - 122 downloads

Other Available Downloads

Application NetSqlAzMan Web Console
application, 1886K, uploaded Apr 17, 2009 - 70 downloads
Application NetSqlAzMan WCF Cache Service
application, 1036K, uploaded Apr 17, 2009 - 64 downloads
Documentation NetSqlAzMan Guide (PDF)
documentation, 3251K, uploaded Apr 17, 2009 - 80 downloads

Release Notes 17-April-2009
  • New:
    • Added CheckAccessHelper method overloads to support CheckAccess with custom SIDs (IAzManCustomSID).
    • Added CheckAccessHelper constructor without WindowsIdentity parameter for DB Users Only.
Thanks to cmacholz: http://netsqlazman.codeplex.com/WorkItem/View.aspx?WorkItemId=2431
  • Change on "Add Database Users" dialog:
    • Now custom columns are showed
Thanks to _Trip. Work item 2680: http://netsqlazman.codeplex.com/WorkItem/View.aspx?WorkItemId=2680
  • Added Filter capabilities on the "Add Database Users" dialog (standard and custom columns)
Thanks to hmadanaraj. Work item 2663: http://netsqlazman.codeplex.com/WorkItem/View.aspx?WorkItemId=2663
  • Added the ability to CheckAccess through .NET Attributes.
Thanks to news75. Work Item 2567: http://netsqlazman.codeplex.com/WorkItem/View.aspx?WorkItemId=2567
  • Added two classes: NetSqlAzManAuthorizationAttribute and NetSqlAzManAuthorizationContext (namespace: NetSqlAzMan)
[NetSqlAzManAuthorization("My operation", " Visible", false)] //If NOT CheckAccess(...) => button1.Visible = false
private System.Windows.Forms.Button button1;

[NetSqlAzManAuthorization("My Role", "Enabled", false)] //If NOT CheckAccess(...) => saveToolStripMenuItem.Enabled = false
private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem;

private void Form2_Load(object sender, EventArgs e)
//Initialize the NetSqlAzMan Context
NetSqlAzManAuthorizationContext ctx = new NetSqlAzManAuthorizationContext(
"data source=(local);Initial Catalog=NetSqlAzManStorage;User id=sa;password=",
"DB Persone",
true); //True to use StorageCache, false to direct check access

//Optionally you can intercept events before and after the Access Check
//ctx.BeforeCheckAccess += new BeforeCheckAccessHandler(NetSqlAzManAuthorizationContext_BeforeCheckAccess);
//ctx.AfterCheckAccess += new AfterCheckAccessHandler(NetSqlAzManAuthorizationContext_AfterCheckAccess);

//If using the Storage Cache … you can also invalidate the cache


//Finally … check the security for all Attributes

//void NetSqlAzManAuthorizationContext_AfterCheckAccess(NetSqlAzManAuthorizationContext context, NetSqlAzManAuthorizationAttribute attribute, ref bool partialResult)
// //Do something before checking the access

//void NetSqlAzManAuthorizationContext_BeforeCheckAccess(NetSqlAzManAuthorizationContext context, NetSqlAzManAuthorizationAttribute attribute)
// //Do something after access check
  • Bug Fix in NetSqlAzManRoleProvider, Snap-In Check Access Test and Web Console Check Access test; WindowsIdentity.GetCurrent() replaced with ((System.Threading.Thread.CurrentPrincipal.Identity as WindowsIdentity) ?? WindowsIdentity.GetCurrent())
Thanks to Richard. Work Item 2740: http://netsqlazman.codeplex.com/WorkItem/View.aspx?WorkItemId=2740

Reviews for this release

No reviews yet for this release.