Example #1
0
 public ExtendedRightAccessRule(
     IdentityReference identity,
     AccessControlType type,
     ActiveDirectorySecurityInheritance inheritanceType)
     : base(
         identity,
         (int)ActiveDirectoryRights.ExtendedRight,
         type,
         Guid.Empty, // all extended rights
         false,
         ActiveDirectoryInheritanceTranslator.GetInheritanceFlags(inheritanceType),
         ActiveDirectoryInheritanceTranslator.GetPropagationFlags(inheritanceType),
         Guid.Empty)
 {
 }
Example #2
0
 public DeleteChildAccessRule(
     IdentityReference identity,
     AccessControlType type,
     ActiveDirectorySecurityInheritance inheritanceType)
     : base(
         identity,
         (int)ActiveDirectoryRights.DeleteChild,
         type,
         Guid.Empty, // all child objects
         false,
         ActiveDirectoryInheritanceTranslator.GetInheritanceFlags(inheritanceType),
         ActiveDirectoryInheritanceTranslator.GetPropagationFlags(inheritanceType),
         Guid.Empty)
 {
 }
Example #3
0
 public ListChildrenAccessRule(
     IdentityReference identity,
     AccessControlType type,
     ActiveDirectorySecurityInheritance inheritanceType)
     : base(
         identity,
         (int)ActiveDirectoryRights.ListChildren,
         type,
         Guid.Empty,
         false,
         ActiveDirectoryInheritanceTranslator.GetInheritanceFlags(inheritanceType),
         ActiveDirectoryInheritanceTranslator.GetPropagationFlags(inheritanceType),
         Guid.Empty)
 {
 }
Example #4
0
 public PropertyAccessRule(
     IdentityReference identity,
     AccessControlType type,
     PropertyAccess access,
     ActiveDirectorySecurityInheritance inheritanceType)
     : base(
         identity,
         (int)PropertyAccessTranslator.AccessMaskFromPropertyAccess(access),
         type,
         Guid.Empty, // all properties
         false,
         ActiveDirectoryInheritanceTranslator.GetInheritanceFlags(inheritanceType),
         ActiveDirectoryInheritanceTranslator.GetPropagationFlags(inheritanceType),
         Guid.Empty)
 {
 }
Example #5
0
 public CreateChildAccessRule(
     IdentityReference identity, AccessControlType type,
     Guid childType,
     ActiveDirectorySecurityInheritance inheritanceType,
     Guid inheritedObjectType)
     : base(
         identity,
         (int)ActiveDirectoryRights.CreateChild,
         type,
         childType,
         false,
         ActiveDirectoryInheritanceTranslator.GetInheritanceFlags(inheritanceType),
         ActiveDirectoryInheritanceTranslator.GetPropagationFlags(inheritanceType),
         inheritedObjectType)
 {
 }
Example #6
0
 public ActiveDirectoryAccessRule(
     IdentityReference identity,
     ActiveDirectoryRights adRights,
     AccessControlType type,
     ActiveDirectorySecurityInheritance inheritanceType)
     : this(
         identity,
         ActiveDirectoryRightsTranslator.AccessMaskFromRights(adRights),
         type,
         Guid.Empty,
         false,
         ActiveDirectoryInheritanceTranslator.GetInheritanceFlags(inheritanceType),
         ActiveDirectoryInheritanceTranslator.GetPropagationFlags(inheritanceType),
         Guid.Empty)
 {
 }
Example #7
0
 public DeleteTreeAccessRule(
     IdentityReference identity,
     AccessControlType type,
     ActiveDirectorySecurityInheritance inheritanceType,
     Guid inheritedObjectType)
     : base(
         identity,
         (int)ActiveDirectoryRights.DeleteTree,
         type,
         Guid.Empty,
         false,
         ActiveDirectoryInheritanceTranslator.GetInheritanceFlags(inheritanceType),
         ActiveDirectoryInheritanceTranslator.GetPropagationFlags(inheritanceType),
         inheritedObjectType)
 {
 }
Example #8
0
 public ActiveDirectoryAuditRule(
     IdentityReference identity,
     ActiveDirectoryRights adRights,
     AuditFlags auditFlags,
     ActiveDirectorySecurityInheritance inheritanceType,
     Guid inheritedObjectType)
     : this(
         identity,
         ActiveDirectoryRightsTranslator.AccessMaskFromRights(adRights),
         auditFlags,
         Guid.Empty,
         false,
         ActiveDirectoryInheritanceTranslator.GetInheritanceFlags(inheritanceType),
         ActiveDirectoryInheritanceTranslator.GetPropagationFlags(inheritanceType),
         inheritedObjectType)
 {
 }
Example #9
0
 public PropertySetAccessRule(IdentityReference identity,
                              AccessControlType type,
                              PropertyAccess access,
                              Guid propertySetType,
                              ActiveDirectorySecurityInheritance inheritanceType,
                              Guid inheritedObjectType)
     : base(
         identity,
         (int)PropertyAccessTranslator.AccessMaskFromPropertyAccess(access),
         type,
         propertySetType,
         false,
         ActiveDirectoryInheritanceTranslator.GetInheritanceFlags(inheritanceType),
         ActiveDirectoryInheritanceTranslator.GetPropagationFlags(inheritanceType),
         inheritedObjectType)
 {
 }
Example #10
0
 public ActiveDirectoryAccessRule(IdentityReference identity, System.DirectoryServices.ActiveDirectoryRights adRights, AccessControlType type, Guid objectType, ActiveDirectorySecurityInheritance inheritanceType, Guid inheritedObjectType) : this(identity, ActiveDirectoryRightsTranslator.AccessMaskFromRights(adRights), type, objectType, false, ActiveDirectoryInheritanceTranslator.GetInheritanceFlags(inheritanceType), ActiveDirectoryInheritanceTranslator.GetPropagationFlags(inheritanceType), inheritedObjectType)
 {
 }
Example #11
0
 public ExtendedRightAccessRule(IdentityReference identity, AccessControlType type, Guid extendedRightType, ActiveDirectorySecurityInheritance inheritanceType, Guid inheritedObjectType) : base(identity, 0x100, type, extendedRightType, false, ActiveDirectoryInheritanceTranslator.GetInheritanceFlags(inheritanceType), ActiveDirectoryInheritanceTranslator.GetPropagationFlags(inheritanceType), inheritedObjectType)
 {
 }
Example #12
0
 public DeleteChildAccessRule(IdentityReference identity, AccessControlType type, Guid childType, ActiveDirectorySecurityInheritance inheritanceType) : base(identity, 2, type, childType, false, ActiveDirectoryInheritanceTranslator.GetInheritanceFlags(inheritanceType), ActiveDirectoryInheritanceTranslator.GetPropagationFlags(inheritanceType), Guid.Empty)
 {
 }