public void AddAuditRule(ActiveDirectoryAuditRule rule)
 {
     if (!this.SaclRetrieved())
     {
         throw new InvalidOperationException(Res.GetString("CannotModifySacl"));
     }
     base.AddAuditRule(rule);
 }
 public bool RemoveAuditRule(ActiveDirectoryAuditRule rule)
 {
     if (!this.SaclRetrieved())
     {
         throw new InvalidOperationException(Res.GetString("CannotModifySacl"));
     }
     return(base.RemoveAuditRule(rule));
 }
 public void AddAuditRule(ActiveDirectoryAuditRule rule)
 {
     if (!this.SaclRetrieved())
     {
         throw new InvalidOperationException(Res.GetString("CannotModifySacl"));
     }
     base.AddAuditRule(rule);
 }
Example #4
0
        public bool RemoveAuditRule(ActiveDirectoryAuditRule rule)
        {
            if (!SaclRetrieved())
            {
                throw new InvalidOperationException(SR.CannotModifySacl);
            }

            return(base.RemoveAuditRule(rule));
        }
Example #5
0
        public void SetAuditRule(ActiveDirectoryAuditRule rule)
        {
            if (!SaclRetrieved())
            {
                throw new InvalidOperationException(SR.CannotModifySacl);
            }

            base.SetAuditRule(rule);
        }
Example #6
0
        public void RemoveAuditRuleSpecific(ActiveDirectoryAuditRule rule)
        {
            if (!SaclRetrieved())
            {
                throw new InvalidOperationException(SR.CannotModifySacl);
            }

            base.RemoveAuditRuleSpecific(rule);
        }
        public void RemoveAudit(IdentityReference identity)
        {
            if (!this.SaclRetrieved())
            {
                throw new InvalidOperationException(Res.GetString("CannotModifySacl"));
            }
            ActiveDirectoryAuditRule rule = new ActiveDirectoryAuditRule(identity, ActiveDirectoryRights.GenericRead, AuditFlags.Failure | AuditFlags.Success, ActiveDirectorySecurityInheritance.None);

            base.RemoveAuditRuleAll(rule);
        }
Example #8
0
 public bool RemoveAuditRule(ActiveDirectoryAuditRule rule)
 {
     if (this.SaclRetrieved())
     {
         return(base.RemoveAuditRule(rule));
     }
     else
     {
         throw new InvalidOperationException("CannotModifySacl");
     }
 }
Example #9
0
 public void AddAuditRule(ActiveDirectoryAuditRule rule)
 {
     if (this.SaclRetrieved())
     {
         base.AddAuditRule(rule);
         return;
     }
     else
     {
         throw new InvalidOperationException("CannotModifySacl");
     }
 }
Example #10
0
		public void AddAuditRule(ActiveDirectoryAuditRule rule)
		{
			if (this.SaclRetrieved())
			{
				base.AddAuditRule(rule);
				return;
			}
			else
			{
				throw new InvalidOperationException("CannotModifySacl");
			}
		}
Example #11
0
 public void RemoveAudit(IdentityReference identity)
 {
     if (this.SaclRetrieved())
     {
         ActiveDirectoryAuditRule activeDirectoryAuditRule = new ActiveDirectoryAuditRule(identity, ActiveDirectoryRights.GenericRead, AuditFlags.Success | AuditFlags.Failure, ActiveDirectorySecurityInheritance.None);
         base.RemoveAuditRuleAll(activeDirectoryAuditRule);
         return;
     }
     else
     {
         throw new InvalidOperationException("CannotModifySacl");
     }
 }
Example #12
0
        public void RemoveAudit(IdentityReference identity)
        {
            if (!SaclRetrieved())
            {
                throw new InvalidOperationException(SR.CannotModifySacl);
            }

            //
            // Create a new rule
            //
            ActiveDirectoryAuditRule rule = new ActiveDirectoryAuditRule(
                identity,
                ActiveDirectoryRights.GenericRead,                      // will be ignored
                AuditFlags.Success | AuditFlags.Failure,
                ActiveDirectorySecurityInheritance.None);

            base.RemoveAuditRuleAll(rule);
        }
Example #13
0
		public bool RemoveAuditRule (ActiveDirectoryAuditRule rule)
		{
			throw new NotImplementedException ();
		}
 public bool RemoveAuditRule(ActiveDirectoryAuditRule rule)
 {
     Contract.Requires(rule != null);
     return(default(bool));
 }
 public void AddAuditRule(ActiveDirectoryAuditRule rule)
 {
   Contract.Requires(rule != null);
 }
Example #16
0
		public void RemoveAudit(IdentityReference identity)
		{
			if (this.SaclRetrieved())
			{
				ActiveDirectoryAuditRule activeDirectoryAuditRule = new ActiveDirectoryAuditRule(identity, ActiveDirectoryRights.GenericRead, AuditFlags.Success | AuditFlags.Failure, ActiveDirectorySecurityInheritance.None);
				base.RemoveAuditRuleAll(activeDirectoryAuditRule);
				return;
			}
			else
			{
				throw new InvalidOperationException("CannotModifySacl");
			}
		}
Example #17
0
		public bool RemoveAuditRule(ActiveDirectoryAuditRule rule)
		{
			if (this.SaclRetrieved())
			{
				return base.RemoveAuditRule(rule);
			}
			else
			{
				throw new InvalidOperationException("CannotModifySacl");
			}
		}
 public void AddAuditRule(ActiveDirectoryAuditRule rule)
 {
     Contract.Requires(rule != null);
 }
 public void RemoveAuditRuleSpecific(ActiveDirectoryAuditRule rule)
 {
     Contract.Requires(rule != null);
 }
Example #20
0
        public void RemoveAuditRuleSpecific(ActiveDirectoryAuditRule rule)
        {
            if (!SaclRetrieved())
            {
                throw new InvalidOperationException(Res.GetString(Res.CannotModifySacl));
            }

            base.RemoveAuditRuleSpecific(rule);
        }
Example #21
0
 public bool RemoveAuditRule(ActiveDirectoryAuditRule rule)
 {
     throw new NotImplementedException();
 }
Example #22
0
        public void RemoveAudit(IdentityReference identity)
        {
            if (!SaclRetrieved())
            {
                throw new InvalidOperationException(Res.GetString(Res.CannotModifySacl));
            }

            //
            // Create a new rule
            //
            ActiveDirectoryAuditRule rule = new ActiveDirectoryAuditRule(
                                     identity,
                                     ActiveDirectoryRights.GenericRead, // will be ignored
                                     AuditFlags.Success | AuditFlags.Failure,
                                     ActiveDirectorySecurityInheritance.None);

            base.RemoveAuditRuleAll(rule);
        }
Example #23
0
        public bool RemoveAuditRule(ActiveDirectoryAuditRule rule)
        {
            if (!SaclRetrieved())
            {
                throw new InvalidOperationException(Res.GetString(Res.CannotModifySacl));
            }

            return base.RemoveAuditRule(rule);
        }
Example #24
0
		public void SetAuditRule (ActiveDirectoryAuditRule rule)
		{
			throw new NotImplementedException ();
		}
 public void RemoveAuditRuleSpecific(ActiveDirectoryAuditRule rule)
 {
   Contract.Requires(rule != null);
 }
Example #26
0
 public void RemoveAuditRuleSpecific(ActiveDirectoryAuditRule rule)
 {
     throw new NotImplementedException();
 }
Example #27
0
 public void SetAuditRule(ActiveDirectoryAuditRule rule)
 {
     throw new NotImplementedException();
 }
 public void RemoveAudit(IdentityReference identity)
 {
     if (!this.SaclRetrieved())
     {
         throw new InvalidOperationException(Res.GetString("CannotModifySacl"));
     }
     ActiveDirectoryAuditRule rule = new ActiveDirectoryAuditRule(identity, ActiveDirectoryRights.GenericRead, AuditFlags.Failure | AuditFlags.Success, ActiveDirectorySecurityInheritance.None);
     base.RemoveAuditRuleAll(rule);
 }
Example #29
0
		public void RemoveAuditRuleSpecific (ActiveDirectoryAuditRule rule)
		{
			throw new NotImplementedException ();
		}
 public bool RemoveAuditRule(ActiveDirectoryAuditRule rule)
 {
   Contract.Requires(rule != null);
   return default(bool);
 }