/src/PasswordFilter/messages.h

https://github.com/lithnet/ad-password-protection · C Header · 229 lines · 28 code · 24 blank · 177 comment · 0 complexity · 96176950bcc8c28dbd6946e5213fd8df MD5 · raw file

  1. // The following are message definitions.
  2. //
  3. // Values are 32 bit values laid out as follows:
  4. //
  5. // 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  6. // 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
  7. // +---+-+-+-----------------------+-------------------------------+
  8. // |Sev|C|R| Facility | Code |
  9. // +---+-+-+-----------------------+-------------------------------+
  10. //
  11. // where
  12. //
  13. // Sev - is the severity code
  14. //
  15. // 00 - Success
  16. // 01 - Informational
  17. // 10 - Warning
  18. // 11 - Error
  19. //
  20. // C - is the Customer code flag
  21. //
  22. // R - is a reserved bit
  23. //
  24. // Facility - is the facility code
  25. //
  26. // Code - is the facility's status code
  27. //
  28. //
  29. // Define the facility codes
  30. //
  31. #define FACILITY_SYSTEM 0x0
  32. #define FACILITY_RUNTIME 0x2
  33. #define FACILITY_STUBS 0x3
  34. #define FACILITY_IO_ERROR_CODE 0x4
  35. //
  36. // Define the severity codes
  37. //
  38. #define STATUS_SEVERITY_SUCCESS 0x0
  39. #define STATUS_SEVERITY_INFORMATIONAL 0x1
  40. #define STATUS_SEVERITY_WARNING 0x2
  41. #define STATUS_SEVERITY_ERROR 0x3
  42. //
  43. // MessageId: MSG_UNEXPECTEDERROR
  44. //
  45. // MessageText:
  46. //
  47. // An unexpected error occurred.
  48. // %1
  49. //
  50. #define MSG_UNEXPECTEDERROR ((DWORD)0xC0020001L)
  51. //
  52. // MessageId: MSG_AGENT_DISABLED
  53. //
  54. // MessageText:
  55. //
  56. // The password filter is currently disabled and has not evaluated the password change request.
  57. //
  58. #define MSG_AGENT_DISABLED ((DWORD)0x80040002L)
  59. //
  60. // MessageId: MSG_AGENT_INITIALIZED
  61. //
  62. // MessageText:
  63. //
  64. // The password filter has been successfully loaded.
  65. //
  66. #define MSG_AGENT_INITIALIZED ((DWORD)0x00040003L)
  67. //
  68. // MessageId: MSG_PROCESSING_REQUEST
  69. //
  70. // MessageText:
  71. //
  72. // Processing a password %1 request for %2 (%3).
  73. //
  74. #define MSG_PROCESSING_REQUEST ((DWORD)0x00000004L)
  75. //
  76. // MessageId: MSG_PASSWORD_APPROVED
  77. //
  78. // MessageText:
  79. //
  80. // The password %1 request for %2 (%3) was approved.
  81. //
  82. #define MSG_PASSWORD_APPROVED ((DWORD)0x00000005L)
  83. //
  84. // MessageId: MSG_WIN32ERROR
  85. //
  86. // MessageText:
  87. //
  88. // An unexpected error occurred.
  89. // Error code: %1
  90. // Message: %2
  91. //
  92. #define MSG_WIN32ERROR ((DWORD)0xC0020008L)
  93. //
  94. // MessageId: MSG_STOREERROR
  95. //
  96. // MessageText:
  97. //
  98. // There was a problem opening the store file. Check that the store folder exists and is accessible
  99. // Error code: %1
  100. //
  101. #define MSG_STOREERROR ((DWORD)0xC0020009L)
  102. //
  103. // MessageId: MSG_PASSWORD_REJECTED_ON_ERROR
  104. //
  105. // MessageText:
  106. //
  107. // The password %1 request was rejected. The module is configured to deny password requests when an error occurs.
  108. //
  109. #define MSG_PASSWORD_REJECTED_ON_ERROR ((DWORD)0x80002001L)
  110. //
  111. // MessageId: MSG_PASSWORD_REJECTED_MINLENGTH
  112. //
  113. // MessageText:
  114. //
  115. // The password %1 request for %2 (%3) was rejected because its length (%4) did not meet the minimum configured length (%5).
  116. //
  117. #define MSG_PASSWORD_REJECTED_MINLENGTH ((DWORD)0x80002002L)
  118. //
  119. // MessageId: MSG_PASSWORD_REJECTED_BANNED
  120. //
  121. // MessageText:
  122. //
  123. // The password %1 request for %2 (%3) was rejected because it matched a password in the compromised password store.
  124. //
  125. #define MSG_PASSWORD_REJECTED_BANNED ((DWORD)0x80002003L)
  126. //
  127. // MessageId: MSG_PASSWORD_REJECTED_BANNED_NORMALIZED_PASSWORD
  128. //
  129. // MessageText:
  130. //
  131. // The password %1 request for %2 (%3) was rejected after being normalized because it matched a password in the compromised password store.
  132. //
  133. #define MSG_PASSWORD_REJECTED_BANNED_NORMALIZED_PASSWORD ((DWORD)0x80002004L)
  134. //
  135. // MessageId: MSG_PASSWORD_REJECTED_APPROVAL_REGEX
  136. //
  137. // MessageText:
  138. //
  139. // The password %1 request for %2 (%3) was rejected because it did not match the approval regular expression.
  140. //
  141. #define MSG_PASSWORD_REJECTED_APPROVAL_REGEX ((DWORD)0x80002005L)
  142. //
  143. // MessageId: MSG_PASSWORD_REJECTED_REJECTION_REGEX
  144. //
  145. // MessageText:
  146. //
  147. // The password %1 request for %2 (%3) was rejected because it matched the rejection regular expression.
  148. //
  149. #define MSG_PASSWORD_REJECTED_REJECTION_REGEX ((DWORD)0x80002006L)
  150. //
  151. // MessageId: MSG_PASSWORD_REJECTED_NOT_ENOUGH_POINTS
  152. //
  153. // MessageText:
  154. //
  155. // The password %1 request for %2 (%3) was rejected because it achieved only %4 of the required %5 complexity points.
  156. //
  157. #define MSG_PASSWORD_REJECTED_NOT_ENOUGH_POINTS ((DWORD)0x80002007L)
  158. //
  159. // MessageId: MSG_PASSWORD_REJECTED_BELOW_THRESHOLD
  160. //
  161. // MessageText:
  162. //
  163. // The password %1 request for %2 (%3) was rejected because it did not meet the complexity requirements of a password below the specified threshold.
  164. //
  165. #define MSG_PASSWORD_REJECTED_BELOW_THRESHOLD ((DWORD)0x80002008L)
  166. //
  167. // MessageId: MSG_PASSWORD_REJECTED_ABOVE_THRESHOLD
  168. //
  169. // MessageText:
  170. //
  171. // The password %1 request for %2 (%3) was rejected because it did not meet the complexity requirements of a password above the specified threshold.
  172. //
  173. #define MSG_PASSWORD_REJECTED_ABOVE_THRESHOLD ((DWORD)0x80002009L)
  174. //
  175. // MessageId: MSG_PASSWORD_REJECTED_CONTAINS_ACCOUNTNAME
  176. //
  177. // MessageText:
  178. //
  179. // The password %1 request for %2 (%3) was rejected because it contained the account name
  180. //
  181. #define MSG_PASSWORD_REJECTED_CONTAINS_ACCOUNTNAME ((DWORD)0x8000200AL)
  182. //
  183. // MessageId: MSG_PASSWORD_REJECTED_CONTAINS_DISPLAYNAME
  184. //
  185. // MessageText:
  186. //
  187. // The password %1 request for %2 (%3) was rejected because it contained at least part of the display name
  188. //
  189. #define MSG_PASSWORD_REJECTED_CONTAINS_DISPLAYNAME ((DWORD)0x8000200BL)
  190. //
  191. // MessageId: MSG_PASSWORD_REJECTED_THRESHOLD_COMPLEXITY
  192. //
  193. // MessageText:
  194. //
  195. // The password %1 request for %2 (%3) was rejected because it did not meet the complexity requirements of a password of %4 characters.
  196. //
  197. #define MSG_PASSWORD_REJECTED_THRESHOLD_COMPLEXITY ((DWORD)0x8000200CL)
  198. //
  199. // MessageId: MSG_PASSWORD_REJECTED_BANNED_NORMALIZED_WORD
  200. //
  201. // MessageText:
  202. //
  203. // The password %1 request for %2 (%3) was rejected after being normalized because it matched a password in the banned word store.
  204. //
  205. #define MSG_PASSWORD_REJECTED_BANNED_NORMALIZED_WORD ((DWORD)0x8000200DL)