]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
remove '&' from mschap
authorAlan T. DeKok <aland@freeradius.org>
Thu, 6 Mar 2025 15:04:14 +0000 (10:04 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 6 Mar 2025 16:49:39 +0000 (11:49 -0500)
doc/antora/modules/reference/pages/raddb/mods-available/mschap.adoc
raddb/mods-available/mschap

index 7023ec7ae45c407b1faaed1c0651540cc5f25c6a..ce233dfdbcfbad6460484ba4b7c9ae6409a2af08 100644 (file)
@@ -341,11 +341,11 @@ mschap {
 #      require_encryption = yes
 #      require_strong = yes
 #      with_ntdomain_hack = no
-#      ntlm_auth = "/path/to/ntlm_auth --request-nt-key  --allow-mschapv2 --username=%{&Stripped-User-Name || &User-Name || 'None'} --challenge=%{%mschap(Challenge) || 00} --nt-response=%{%mschap(NT-Response) || 00}"
+#      ntlm_auth = "/path/to/ntlm_auth --request-nt-key  --allow-mschapv2 --username=%{Stripped-User-Name || User-Name || 'None'} --challenge=%{%mschap('Challenge') || 00} --nt-response=%{%mschap('NT-Response') || 00}"
 #      ntlm_auth_timeout = 10
        winbind {
-#              username = "%mschap(User-Name)"
-#              domain = "%mschap(NT-Domain)"
+#              username = "%mschap('User-Name')"
+#              domain = "%mschap('NT-Domain')"
 #              retry_with_normalised_username = no
                reuse {
 #                      min = 10
@@ -355,36 +355,36 @@ mschap {
        }
        passchange {
 #              ntlm_auth = "/usr/bin/ntlm_auth --helper-protocol=ntlm-change-password-1"
-#              ntlm_auth_username = "username: %mschap(User-Name)"
-#              ntlm_auth_domain = "nt-domain: %mschap(NT-Domain)"
-#              local_cpw = %exec('/path/to/script', %mschap(User-Name), %{MS-CHAP-New-Cleartext-Password})
+#              ntlm_auth_username = "username: %mschap('User-Name')"
+#              ntlm_auth_domain = "nt-domain: %mschap('NT-Domain')"
+#              local_cpw = %exec('/path/to/script', %mschap('User-Name'), %{MS-CHAP-New-Cleartext-Password})
 #              local_cpw = %sql("UPDATE radcheck set value='%{MS-CHAP-New-NT-Password}' where username='%{User-Name}' and attribute='Password.NT'")
        }
 #      use_open_directory = yes
 #      allow_retry = yes
 #      retry_msg = "Re-enter (or reset) the password"
        attributes {
-               username = &User-Name
-               chap_challenge = &Vendor-Specific.Microsoft.CHAP-Challenge
-               chap_response = &Vendor-Specific.Microsoft.CHAP-Response
-               chap2_response = &Vendor-Specific.Microsoft.CHAP2-Response
-               chap2_success = &Vendor-Specific.Microsoft.CHAP2-Success
-               chap_error = &Vendor-Specific.Microsoft.CHAP-Error
-               chap_mppe_keys = &Vendor-Specific.Microsoft.CHAP-MPPE-Keys
-               mppe_recv_key = &Vendor-Specific.Microsoft.MPPE-Recv-Key
-               mppe_send_key = &Vendor-Specific.Microsoft.MPPE-Send-Key
-               mppe_encryption_policy = &Vendor-Specific.Microsoft.MPPE-Encryption-Policy
-               mppe_encryption_types = &Vendor-Specific.Microsoft.MPPE-Encryption-Types
-               chap2_cpw =  &Vendor-Specific.Microsoft.CHAP2-CPW
-               chap_nt_enc_pw = &Vendor-Specific.Microsoft.CHAP-NT-Enc-PW
+               username = User-Name
+               chap_challenge = Vendor-Specific.Microsoft.CHAP-Challenge
+               chap_response = Vendor-Specific.Microsoft.CHAP-Response
+               chap2_response = Vendor-Specific.Microsoft.CHAP2-Response
+               chap2_success = Vendor-Specific.Microsoft.CHAP2-Success
+               chap_error = Vendor-Specific.Microsoft.CHAP-Error
+               chap_mppe_keys = Vendor-Specific.Microsoft.CHAP-MPPE-Keys
+               mppe_recv_key = Vendor-Specific.Microsoft.MPPE-Recv-Key
+               mppe_send_key = Vendor-Specific.Microsoft.MPPE-Send-Key
+               mppe_encryption_policy = Vendor-Specific.Microsoft.MPPE-Encryption-Policy
+               mppe_encryption_types = Vendor-Specific.Microsoft.MPPE-Encryption-Types
+               chap2_cpw =  Vendor-Specific.Microsoft.CHAP2-CPW
+               chap_nt_enc_pw = Vendor-Specific.Microsoft.CHAP-NT-Enc-PW
        }
 #      attributes {
-#              username = &User-Name
-#              chap_challenge = &MS-CHAP-Challenge
-#              chap_response = &MS-CHAP-Response
-#              chap2_response = &MS-CHAP2-Response
-#              chap2_success = &MS-CHAP2-Success
-#              chap_error = &MS-CHAP-Error
+#              username = User-Name
+#              chap_challenge = MS-CHAP-Challenge
+#              chap_response = MS-CHAP-Response
+#              chap2_response = MS-CHAP2-Response
+#              chap2_success = MS-CHAP2-Success
+#              chap_error = MS-CHAP-Error
 #      }
 }
 ```
index 396aec562756b72247352be0aee19a4b378b9b2b..bc8e9b4a9139d744753405eef137cbf0b8904282 100644 (file)
@@ -142,7 +142,7 @@ mschap {
        #  WARNING: Be VERY careful when editing the following line!
        #  Change the path, and ideally nothing else.
        #
-#      ntlm_auth = "/path/to/ntlm_auth --request-nt-key  --allow-mschapv2 --username=%{&Stripped-User-Name || &User-Name || 'None'} --challenge=%{%mschap(Challenge) || 00} --nt-response=%{%mschap(NT-Response) || 00}"
+#      ntlm_auth = "/path/to/ntlm_auth --request-nt-key  --allow-mschapv2 --username=%{Stripped-User-Name || User-Name || 'None'} --challenge=%{%mschap('Challenge') || 00} --nt-response=%{%mschap('NT-Response') || 00}"
 
        #
        #  ntlm_auth_timeout:: Time to wait for `ntlm_auth` to run.
@@ -179,8 +179,8 @@ mschap {
                #  later to be installed. Make sure that `ntlm_auth` above is
                #  commented out.
                #
-#              username = "%mschap(User-Name)"
-#              domain = "%mschap(NT-Domain)"
+#              username = "%mschap('User-Name')"
+#              domain = "%mschap('NT-Domain')"
 
                #
                #  retry_with_normalised_username::
@@ -242,8 +242,8 @@ mschap {
                #  Uncomment the three lines below, and change the path to `ntlm_auth.
                #
 #              ntlm_auth = "/usr/bin/ntlm_auth --helper-protocol=ntlm-change-password-1"
-#              ntlm_auth_username = "username: %mschap(User-Name)"
-#              ntlm_auth_domain = "nt-domain: %mschap(NT-Domain)"
+#              ntlm_auth_username = "username: %mschap('User-Name')"
+#              ntlm_auth_domain = "nt-domain: %mschap('NT-Domain')"
 
                #
                #  local_cpw::
@@ -255,7 +255,7 @@ mschap {
                #
                #  TIP: We give both examples here, but *only one should be used*.
                #
-#              local_cpw = %exec('/path/to/script', %mschap(User-Name), %{MS-CHAP-New-Cleartext-Password})
+#              local_cpw = %exec('/path/to/script', %mschap('User-Name'), %{MS-CHAP-New-Cleartext-Password})
 #              local_cpw = %sql("UPDATE radcheck set value='%{MS-CHAP-New-NT-Password}' where username='%{User-Name}' and attribute='Password.NT'")
 
        }