/// <summary>
 /// Called to write save audit log entries.
 /// </summary>
 /// <param name="success">if set to <c>true</c> [success].</param>
 /// <param name="accessRuleDetails">The password policy details.</param>
 protected override void OnWriteSaveAuditLogEntries(bool success, AuditLogPasswordPolicyDetails accessRuleDetails)
 {
     if (accessRuleDetails.OldMinimumPasswordLength != accessRuleDetails.NewMinimumPasswordLength ||
         accessRuleDetails.OldMaximumPasswordAge != accessRuleDetails.NewMaximumPasswordAge ||
         accessRuleDetails.OldMustContainUpperCaseCharacters != accessRuleDetails.NewMustContainUpperCaseCharacters ||
         accessRuleDetails.OldMustContainLowerCaseCharacters != accessRuleDetails.NewMustContainLowerCaseCharacters ||
         accessRuleDetails.OldMustContainDigits != accessRuleDetails.NewMustContainDigits ||
         accessRuleDetails.OldMustContainSpecialCharacters != accessRuleDetails.NewMustContainSpecialCharacters ||
         accessRuleDetails.OldAccountLockoutDuration != accessRuleDetails.NewAccountLockoutDuration ||
         accessRuleDetails.OldAccountLockoutThreshold != accessRuleDetails.NewAccountLockoutThreshold)
     {
         // Password policy was changed
         AuditLog.OnChangePasswordPolicy(success,
                                         accessRuleDetails.OldMinimumPasswordLength, accessRuleDetails.NewMinimumPasswordLength,
                                         accessRuleDetails.OldMaximumPasswordAge, accessRuleDetails.NewMaximumPasswordAge,
                                         accessRuleDetails.OldMustContainUpperCaseCharacters, accessRuleDetails.NewMustContainUpperCaseCharacters,
                                         accessRuleDetails.OldMustContainLowerCaseCharacters, accessRuleDetails.NewMustContainLowerCaseCharacters,
                                         accessRuleDetails.OldMustContainDigits, accessRuleDetails.NewMustContainDigits,
                                         accessRuleDetails.OldMustContainSpecialCharacters, accessRuleDetails.NewMustContainSpecialCharacters,
                                         accessRuleDetails.OldAccountLockoutDuration, accessRuleDetails.NewAccountLockoutDuration,
                                         accessRuleDetails.OldAccountLockoutThreshold, accessRuleDetails.NewAccountLockoutThreshold);
     }
 }