Always authenticating users, but returning IP Address for some

"Ryan O'Connell" <[email protected]>
Newsgroups gmane.comp.gnu.radius.general
Message-ID <[email protected]>
Hi,

I'm trying to set up a RADIUS server to always authenticate users 
sucessfully, but return additional information (Static IP address) from 
an SQL database for those that get the correct username and password. If 
the incorrect password is used, ideally the user should still be 
authenticated but without the Static IP. I initially tried matching 
using %C{Password} in reply_attr_query but that approach doesn't work 
with CHAP passwords.

I've now tried the following:

/usr/local/etc/raddb/users:
DEFAULT Auth-Type = Accept
         Service-Type = Framed-User,
                Framed-Protocol = PPP, (etc...)
                Fall-Through = Yes

DEFAULT Auth-Type = Local,
                 Password-Location = SQL
         Reply-Message = "Authenticated"

...and then checking %R{Reply-Message} in check_attr_query but it looks 
like %R{} isn't available in check_attr_query and also only one 
"Auth-Type" is allowed - any subsequent Auth-Type entries pass 
regardless of what they are. (If I reverse the order of the two DEFAULT 
entries above, all authentication fails except with a matching 
username/password)

Is there any easy way around the above problems?

Thanks.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.