"David C. Troy" <[EMAIL PROTECTED]> wrote:
> How do I configure this so that it does basically this:
>
> - Get auth request
> - Is it PAP? If so, run query string A
> - Compare crypted password
> - Is it CHAP? If so, run query string B
> - Compare cleartext password
You don't. You update the query to get the User-Password, OR the
Crypt-Password. The rest of the code should figure out what to do.
e.g. SELECT Value,Attribute FROM ${foocheck_table} WHERE UserName =
'%{User-Name}' AND ( Attribute = 'User-Password' OR Attribute =
'Password' OR Attribute = 'Crypt-Password' ) ORDER BY Attribute DESC"
Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html