Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

mschap 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. # -*- text -*-
  2. #
  3. # $Id: 9e016a09a158f55bbc9b48876f0cb2b776b4cd96 $
  4. # Microsoft CHAP authentication
  5. #
  6. # This module supports MS-CHAP and MS-CHAPv2 authentication.
  7. # It also enforces the SMB-Account-Ctrl attribute.
  8. #
  9. mschap {
  10. #
  11. # If you are using /etc/smbpasswd, see the 'passwd'
  12. # module for an example of how to use /etc/smbpasswd
  13. # if use_mppe is not set to no mschap will
  14. # add MS-CHAP-MPPE-Keys for MS-CHAPv1 and
  15. # MS-MPPE-Recv-Key/MS-MPPE-Send-Key for MS-CHAPv2
  16. #
  17. use_mppe = yes
  18. # if mppe is enabled require_encryption makes
  19. # encryption moderate
  20. #
  21. require_encryption = yes
  22. # require_strong always requires 128 bit key
  23. # encryption
  24. #
  25. require_strong = yes
  26. # Windows sends us a username in the form of
  27. # DOMAIN\user, but sends the challenge response
  28. # based on only the user portion. This hack
  29. # corrects for that incorrect behavior.
  30. #
  31. # with_ntdomain_hack = no
  32. # The module can perform authentication itself, OR
  33. # use a Windows Domain Controller. This configuration
  34. # directive tells the module to call the ntlm_auth
  35. # program, which will do the authentication, and return
  36. # the NT-Key. Note that you MUST have "winbindd" and
  37. # "nmbd" running on the local machine for ntlm_auth
  38. # to work. See the ntlm_auth program documentation
  39. # for details.
  40. #
  41. # If ntlm_auth is configured below, then the mschap
  42. # module will call ntlm_auth for every MS-CHAP
  43. # authentication request. If there is a cleartext
  44. # or NT hashed password available, you can set
  45. # "MS-CHAP-Use-NTLM-Auth := No" in the control items,
  46. # and the mschap module will do the authentication itself,
  47. # without calling ntlm_auth.
  48. #
  49. # Be VERY careful when editing the following line!
  50. #
  51. # You can also try setting the user name as:
  52. #
  53. # ... --username=%{mschap:User-Name} ...
  54. #
  55. # In that case, the mschap module will look at the User-Name
  56. # attribute, and do prefix/suffix checks in order to obtain
  57. # the "best" user name for the request.
  58. #
  59. # ntlm_auth = "/path/to/ntlm_auth --request-nt-key --username=%{%{Stripped-User-Name}:-%{%{User-Name}:-None}} --challenge=%{%{mschap:Challenge}:-00} --nt-response=%{%{mschap:NT-Response}:-00}"
  60. # The default is to wait 10 seconds for ntlm_auth to
  61. # complete. This is a long time, and if it's taking that
  62. # long then you likely have other problems in your domain.
  63. # The length of time can be decreased with the following
  64. # option, which can save clients waiting if your ntlm_auth
  65. # usually finishes quicker. Range 1 to 10 seconds.
  66. #
  67. # ntlm_auth_timeout = 10
  68. # For Apple Server, when running on the same machine as
  69. # Open Directory. It has no effect on other systems.
  70. #
  71. # use_open_directory = yes
  72. # On failure, set (or not) the MS-CHAP error code saying
  73. # "retries allowed".
  74. # allow_retry = yes
  75. # An optional retry message.
  76. # retry_msg = "Re-enter (or reset) the password"
  77. }