]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
manually create CHAP-Password
authorAlan T. DeKok <aland@freeradius.org>
Thu, 28 May 2020 14:31:48 +0000 (10:31 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 28 May 2020 14:31:48 +0000 (10:31 -0400)
src/tests/auth/chap
src/tests/auth/chap_header

index 648546a01f5d0defbc29cfebd972adfdb1e41657..302f394e22cb8db90de1f837622f6d1733030258 100644 (file)
@@ -1,3 +1,10 @@
 #
 #  Password is already set in radiusd.conf
 #
+
+#
+#  Set CHAP-Password
+#
+update request {
+       &CHAP-Password := "%{chap_password:%{request:CHAP-Password}}"
+}
index e3ea7995a766921c9d0e68a45b4263ac34d136e3..e70ee15ff16f67b7baf1a6e13801384aa8329878 100644 (file)
@@ -5,3 +5,10 @@ update control {
        &Cleartext-Password -= 'hello'
        &Password-With-Header := 'oracle01'
 }
+
+#
+#  Set CHAP-Password
+#
+update request {
+       &CHAP-Password := "%{chap_password:%{request:CHAP-Password}}"
+}