Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

hostapd.eap_user 3.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. # hostapd user database for integrated EAP server
  2. # Each line must contain an identity, EAP method(s), and an optional password
  3. # separated with whitespace (space or tab). The identity and password must be
  4. # double quoted ("user"). Password can alternatively be stored as
  5. # NtPasswordHash (16-byte MD4 hash of the unicode presentation of the password
  6. # in unicode) if it is used for MSCHAP or MSCHAPv2 authentication. This means
  7. # that the plaintext password does not need to be included in the user file.
  8. # Password hash is stored as hash:<16-octets of hex data> without quotation
  9. # marks.
  10. # [2] flag in the end of the line can be used to mark users for tunneled phase
  11. # 2 authentication (e.g., within EAP-PEAP). In these cases, an anonymous
  12. # identity can be used in the unencrypted phase 1 and the real user identity
  13. # is transmitted only within the encrypted tunnel in phase 2. If non-anonymous
  14. # access is needed, two user entries is needed, one for phase 1 and another
  15. # with the same username for phase 2.
  16. #
  17. # EAP-TLS, EAP-PEAP, EAP-TTLS, EAP-FAST, EAP-SIM, and EAP-AKA do not use
  18. # password option.
  19. # EAP-MD5, EAP-MSCHAPV2, EAP-GTC, EAP-PAX, EAP-PSK, and EAP-SAKE require a
  20. # password.
  21. # EAP-PEAP, EAP-TTLS, and EAP-FAST require Phase 2 configuration.
  22. #
  23. # * can be used as a wildcard to match any user identity. The main purposes for
  24. # this are to set anonymous phase 1 identity for EAP-PEAP and EAP-TTLS and to
  25. # avoid having to configure every certificate for EAP-TLS authentication. The
  26. # first matching entry is selected, so * should be used as the last phase 1
  27. # user entry.
  28. #
  29. # "prefix"* can be used to match the given prefix and anything after this. The
  30. # main purpose for this is to be able to avoid EAP method negotiation when the
  31. # method is using known prefix in identities (e.g., EAP-SIM and EAP-AKA). This
  32. # is only allowed for phase 1 identities.
  33. #
  34. # Multiple methods can be configured to make the authenticator try them one by
  35. # one until the peer accepts one. The method names are separated with a
  36. # comma (,).
  37. #
  38. # [ver=0] and [ver=1] flags after EAP type PEAP can be used to force PEAP
  39. # version based on the Phase 1 identity. Without this flag, the EAP
  40. # authenticator advertises the highest supported version and select the version
  41. # based on the first PEAP packet from the supplicant.
  42. #
  43. # EAP-TTLS supports both EAP and non-EAP authentication inside the tunnel.
  44. # Tunneled EAP methods are configured with standard EAP method name and [2]
  45. # flag. Non-EAP methods can be enabled by following method names: TTLS-PAP,
  46. # TTLS-CHAP, TTLS-MSCHAP, TTLS-MSCHAPV2. TTLS-PAP and TTLS-CHAP require a
  47. # plaintext password while TTLS-MSCHAP and TTLS-MSCHAPV2 can use NT password
  48. # hash.
  49. # Phase 1 users
  50. "user" MD5 "password"
  51. "test user" MD5 "secret"
  52. "example user" TLS
  53. "DOMAIN\user" MSCHAPV2 "password"
  54. "gtc user" GTC "password"
  55. "pax user" PAX "unknown"
  56. "pax.user@example.com" PAX 0123456789abcdef0123456789abcdef
  57. "psk user" PSK "unknown"
  58. "psk.user@example.com" PSK 0123456789abcdef0123456789abcdef
  59. "sake.user@example.com" SAKE 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
  60. "ttls" TTLS
  61. "not anonymous" PEAP
  62. # Default to EAP-SIM and EAP-AKA based on fixed identity prefixes
  63. "0"* AKA,TTLS,TLS,PEAP,SIM
  64. "1"* SIM,TTLS,TLS,PEAP,AKA
  65. "2"* AKA,TTLS,TLS,PEAP,SIM
  66. "3"* SIM,TTLS,TLS,PEAP,AKA
  67. "4"* AKA,TTLS,TLS,PEAP,SIM
  68. "5"* SIM,TTLS,TLS,PEAP,AKA
  69. # Wildcard for all other identities
  70. * PEAP,TTLS,TLS,SIM,AKA
  71. # Phase 2 (tunnelled within EAP-PEAP or EAP-TTLS) users
  72. "t-md5" MD5 "password" [2]
  73. "DOMAIN\t-mschapv2" MSCHAPV2 "password" [2]
  74. "t-gtc" GTC "password" [2]
  75. "not anonymous" MSCHAPV2 "password" [2]
  76. "user" MD5,GTC,MSCHAPV2 "password" [2]
  77. "test user" MSCHAPV2 hash:000102030405060708090a0b0c0d0e0f [2]
  78. "ttls-user" TTLS-PAP,TTLS-CHAP,TTLS-MSCHAP,TTLS-MSCHAPV2 "password" [2]
  79. # Default to EAP-SIM and EAP-AKA based on fixed identity prefixes in phase 2
  80. "0"* AKA [2]
  81. "1"* SIM [2]
  82. "2"* AKA [2]
  83. "3"* SIM [2]
  84. "4"* AKA [2]
  85. "5"* SIM [2]