constants.go 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. package errorcode
  2. const (
  3. KDC_ERR_NONE = 0 //No error
  4. KDC_ERR_NAME_EXP = 1 //Client's entry in database has expired
  5. KDC_ERR_SERVICE_EXP = 2 //Server's entry in database has expired
  6. KDC_ERR_BAD_PVNO = 3 //Requested protocol version number not supported
  7. KDC_ERR_C_OLD_MAST_KVNO = 4 //Client's key encrypted in old master key
  8. KDC_ERR_S_OLD_MAST_KVNO = 5 //Server's key encrypted in old master key
  9. KDC_ERR_C_PRINCIPAL_UNKNOWN = 6 //Client not found in Kerberos database
  10. KDC_ERR_S_PRINCIPAL_UNKNOWN = 7 //Server not found in Kerberos database
  11. KDC_ERR_PRINCIPAL_NOT_UNIQUE = 8 //Multiple principal entries in database
  12. KDC_ERR_NULL_KEY = 9 //The client or server has a null key
  13. KDC_ERR_CANNOT_POSTDATE = 10 //Ticket not eligible for postdating
  14. KDC_ERR_NEVER_VALID = 11 //Requested starttime is later than end time
  15. KDC_ERR_POLICY = 12 //KDC policy rejects request
  16. KDC_ERR_BADOPTION = 13 //KDC cannot accommodate requested option
  17. KDC_ERR_ETYPE_NOSUPP = 14 //KDC has no support for encryption type
  18. KDC_ERR_SUMTYPE_NOSUPP = 15 //KDC has no support for checksum type
  19. KDC_ERR_PADATA_TYPE_NOSUPP = 16 //KDC has no support for padata type
  20. KDC_ERR_TRTYPE_NOSUPP = 17 //KDC has no support for transited type
  21. KDC_ERR_CLIENT_REVOKED = 18 //Clients credentials have been revoked
  22. KDC_ERR_SERVICE_REVOKED = 19 //Credentials for server have been revoked
  23. KDC_ERR_TGT_REVOKED = 20 //TGT has been revoked
  24. KDC_ERR_CLIENT_NOTYET = 21 //Client not yet valid; try again later
  25. KDC_ERR_SERVICE_NOTYET = 22 //Server not yet valid; try again later
  26. KDC_ERR_KEY_EXPIRED = 23 //Password has expired; change password to reset
  27. KDC_ERR_PREAUTH_FAILED = 24 //Pre-authentication information was invalid
  28. KDC_ERR_PREAUTH_REQUIRED = 25 //Additional pre- authentication required
  29. KDC_ERR_SERVER_NOMATCH = 26 //Requested server and ticket don't match
  30. KDC_ERR_MUST_USE_USER2USER = 27 //Server principal valid for user2user only
  31. KDC_ERR_PATH_NOT_ACCEPTED = 28 //KDC Policy rejects transited path
  32. KDC_ERR_SVC_UNAVAILABLE = 29 //A service is not available
  33. KRB_AP_ERR_BAD_INTEGRITY = 31 //Integrity check on decrypted field failed
  34. KRB_AP_ERR_TKT_EXPIRED = 32 //Ticket expired
  35. KRB_AP_ERR_TKT_NYV = 33 //Ticket not yet valid
  36. KRB_AP_ERR_REPEAT = 34 //Request is a replay
  37. KRB_AP_ERR_NOT_US = 35 //The ticket isn't for us
  38. KRB_AP_ERR_BADMATCH = 36 //Ticket and authenticator don't match
  39. KRB_AP_ERR_SKEW = 37 //Clock skew too great
  40. KRB_AP_ERR_BADADDR = 38 //Incorrect net address
  41. KRB_AP_ERR_BADVERSION = 39 //Protocol version mismatch
  42. KRB_AP_ERR_MSG_TYPE = 40 //Invalid msg type
  43. KRB_AP_ERR_MODIFIED = 41 //Message stream modified
  44. KRB_AP_ERR_BADORDER = 42 //Message out of order
  45. KRB_AP_ERR_BADKEYVER = 44 //Specified version of key is not available
  46. KRB_AP_ERR_NOKEY = 45 //Service key not available
  47. KRB_AP_ERR_MUT_FAIL = 46 //Mutual authentication failed
  48. KRB_AP_ERR_BADDIRECTION = 47 //Incorrect message direction
  49. KRB_AP_ERR_METHOD = 48 //Alternative authentication method required
  50. KRB_AP_ERR_BADSEQ = 49 //Incorrect sequence number in message
  51. KRB_AP_ERR_INAPP_CKSUM = 50 //Inappropriate type of checksum in message
  52. KRB_AP_PATH_NOT_ACCEPTED = 51 //Policy rejects transited path
  53. KRB_ERR_RESPONSE_TOO_BIG = 52 //Response too big for UDP; retry with TCP
  54. KRB_ERR_GENERIC = 60 //Generic error (description in e-text)
  55. KRB_ERR_FIELD_TOOLONG = 61 //Field is too long for this implementation
  56. KDC_ERROR_CLIENT_NOT_TRUSTED = 62 //Reserved for PKINIT
  57. KDC_ERROR_KDC_NOT_TRUSTED = 63 //Reserved for PKINIT
  58. KDC_ERROR_INVALID_SIG = 64 //Reserved for PKINIT
  59. KDC_ERR_KEY_TOO_WEAK = 65 //Reserved for PKINIT
  60. KDC_ERR_CERTIFICATE_MISMATCH = 66 //Reserved for PKINIT
  61. KRB_AP_ERR_NO_TGT = 67 //No TGT available to validate USER-TO-USER
  62. KDC_ERR_WRONG_REALM = 68 //Reserved for future use
  63. KRB_AP_ERR_USER_TO_USER_REQUIRED = 69 //Ticket must be for USER-TO-USER
  64. KDC_ERR_CANT_VERIFY_CERTIFICATE = 70 //Reserved for PKINIT
  65. KDC_ERR_INVALID_CERTIFICATE = 71 //Reserved for PKINIT
  66. KDC_ERR_REVOKED_CERTIFICATE = 72 //Reserved for PKINIT
  67. KDC_ERR_REVOCATION_STATUS_UNKNOWN = 73 //Reserved for PKINIT
  68. KDC_ERR_REVOCATION_STATUS_UNAVAILABLE = 74 //Reserved for PKINIT
  69. KDC_ERR_CLIENT_NAME_MISMATCH = 75 //Reserved for PKINIT
  70. KDC_ERR_KDC_NAME_MISMATCH = 76 //Reserved for PKINIT
  71. )