I am using Freeradius to authenticate users via an external script as shown here, that returns Accept or Reject when passed a username and password pair.
authorize{
update control {
Auth-Type := `/usr/bin/php -f /etc/raddb/yourscript.php '%{User-Name}' '%{User-Password}' '%{Client-IP-Address}'`
}
This works properly as expected when the client is using PAP. The password is sent in %{User-Password}
.
However when using CHAP or MS-CHAP it does not work, as %{User-Password}
remains empty.
How can I get the plaintext password to send to my script? Alternatively, is there any other way to support CHAP/MS-CHAP?