Centralize NTFS ACL permission defaults
This commit is contained in:
@@ -48,6 +48,13 @@ namespace C4IT.LIAM
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static class cLiamAclPermissionDefaults
|
||||||
|
{
|
||||||
|
public const int Read = 0x200A9;
|
||||||
|
public const int Write = 0x301BF;
|
||||||
|
public const int Owner = 0x301BF;
|
||||||
|
}
|
||||||
|
|
||||||
public class cLiamProviderData : ICloneable
|
public class cLiamProviderData : ICloneable
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -80,9 +87,9 @@ namespace C4IT.LIAM
|
|||||||
public string ReadGroupGlobal { get; set; } = "";
|
public string ReadGroupGlobal { get; set; } = "";
|
||||||
public string ReadGroupLocal { get; set; } = "";
|
public string ReadGroupLocal { get; set; } = "";
|
||||||
public string TraverseGroup { get; set; } = "";
|
public string TraverseGroup { get; set; } = "";
|
||||||
public int ReadACLPermission { get; set; } = 0x200A9;
|
public int ReadACLPermission { get; set; } = cLiamAclPermissionDefaults.Read;
|
||||||
public int WriteACLPermission { get; set; } = 0x301BF;
|
public int WriteACLPermission { get; set; } = cLiamAclPermissionDefaults.Write;
|
||||||
public int OwnerACLPermission { get; set; } = 0x1F01FF;
|
public int OwnerACLPermission { get; set; } = cLiamAclPermissionDefaults.Owner;
|
||||||
|
|
||||||
public List<cLiamNamingConvention> NamingConventions { get; set; } = new List<cLiamNamingConvention>();
|
public List<cLiamNamingConvention> NamingConventions { get; set; } = new List<cLiamNamingConvention>();
|
||||||
public Dictionary<string, string> CustomTags { get; set; } = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
|
public Dictionary<string, string> CustomTags { get; set; } = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ using C4IT.Logging;
|
|||||||
using static C4IT.Logging.cLogManager;
|
using static C4IT.Logging.cLogManager;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using C4IT_IAM_GET;
|
using C4IT_IAM_GET;
|
||||||
|
using C4IT.LIAM;
|
||||||
|
|
||||||
|
|
||||||
namespace C4IT_IAM_SET
|
namespace C4IT_IAM_SET
|
||||||
@@ -61,9 +62,9 @@ namespace C4IT_IAM_SET
|
|||||||
public bool preserveAdGroupNameCase;
|
public bool preserveAdGroupNameCase;
|
||||||
public bool WhatIf;
|
public bool WhatIf;
|
||||||
|
|
||||||
public int ReadACLPermission = 0x200A9;
|
public int ReadACLPermission = cLiamAclPermissionDefaults.Read;
|
||||||
public int WriteACLPermission = 0x301BF;
|
public int WriteACLPermission = cLiamAclPermissionDefaults.Write;
|
||||||
public int OwnerACLPermission = 0x1F01FF;
|
public int OwnerACLPermission = cLiamAclPermissionDefaults.Owner;
|
||||||
|
|
||||||
|
|
||||||
public string ConfigID;
|
public string ConfigID;
|
||||||
|
|||||||
@@ -301,9 +301,9 @@ namespace LiamWorkflowActivities
|
|||||||
GroupPath = cLIAMHelper.getStringFromObject(dataMain["GCCgroupOUPath"]),
|
GroupPath = cLIAMHelper.getStringFromObject(dataMain["GCCgroupOUPath"]),
|
||||||
GroupStrategy = (eLiamGroupStrategies)cLIAMHelper.getIntFromObject(dataMain["GCCPermissionGroupStrategy"]),
|
GroupStrategy = (eLiamGroupStrategies)cLIAMHelper.getIntFromObject(dataMain["GCCPermissionGroupStrategy"]),
|
||||||
ProviderType = (eLiamProviderTypes)cLIAMHelper.getIntFromObject(dataMain["GCCtargetType"]),
|
ProviderType = (eLiamProviderTypes)cLIAMHelper.getIntFromObject(dataMain["GCCtargetType"]),
|
||||||
OwnerACLPermission = GetAclPermissionFromDataRow(dataMain, "OwnerACLPermission", 0x1F01FF),
|
OwnerACLPermission = GetAclPermissionFromDataRow(dataMain, "OwnerACLPermission", cLiamAclPermissionDefaults.Owner),
|
||||||
WriteACLPermission = GetAclPermissionFromDataRow(dataMain, "WriteACLPermission", 0x301BF),
|
WriteACLPermission = GetAclPermissionFromDataRow(dataMain, "WriteACLPermission", cLiamAclPermissionDefaults.Write),
|
||||||
ReadACLPermission = GetAclPermissionFromDataRow(dataMain, "ReadACLPermission", 0x200A9)
|
ReadACLPermission = GetAclPermissionFromDataRow(dataMain, "ReadACLPermission", cLiamAclPermissionDefaults.Read)
|
||||||
};
|
};
|
||||||
if (dataAdditional != null)
|
if (dataAdditional != null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user