Problem with update request
Fabian Mikołajczak
fm at pro-internet.pl
Wed Sep 14 20:14:54 CEST 2011
Hi all,
I'm trying to replace User-Name and User-Password with
ADSL-Agent-Circuit-Id in request and it does not work. Configuration and
debug output below. What I am doing wrong?
freeradius: FreeRADIUS Version 2.1.10
--- config file ---
if ADSL-Agent-Circuit-Id {
update request {
User-Name := "%{%{ADSL-Agent-Circuit-Id}:-bar}"
User-Password := "%{ADSL-Agent-Circuit-Id}"
}
}
--- debug
Ready to process requests.
rad_recv: Access-Request packet from host 127.0.0.1 port 50917, id=104,
length=69
User-Name = "00:16:17:eb:e1:ca"
User-Password = "Redback"
ADSL-Agent-Circuit-Id = "\000\001\001\024"
# Executing section authorize from file
/etc/freeradius/sites-enabled/default
+- entering group authorize {...}
++[preprocess] returns ok
++? if ADSL-Agent-Circuit-Id
Evaluating (ADSL-Agent-Circuit-Id) -> TRUE
++? if ADSL-Agent-Circuit-Id -> TRUE
++- entering if ADSL-Agent-Circuit-Id {...}
expand: %{ADSL-Agent-Circuit-Id} ->
... expanding second conditional
expand: %{%{ADSL-Agent-Circuit-Id}:-bar} -> bar
expand: %{ADSL-Agent-Circuit-Id} ->
+++[request] returns ok
++- if ADSL-Agent-Circuit-Id returns ok
++[chap] returns noop
++[mschap] returns noop
++[digest] returns noop
[suffix] No '@' in User-Name = "bar", looking up realm NULL
[suffix] No such realm "NULL"
++[suffix] returns noop
[eap] No EAP-Message, not doing EAP
++[eap] returns noop
[files] users: Matched entry DEFAULT at line 206
++[files] returns ok
++[expiration] returns noop
++[logintime] returns noop
++[pap] returns updated
Found Auth-Type = PAP
# Executing group from file /etc/freeradius/sites-enabled/default
+- entering group PAP {...}
++[pap] returns invalid
Failed to authenticate the user.
Using Post-Auth-Type Reject
---
Do you have any idea?
Thanks.
--
Fabian
More information about the Freeradius-Users
mailing list