Parse error after Freeradius Migration (Ascend binary attribute)
Hello, I am working on migrating from freeradius 1.1.0 (manually compiled) to 2.1.8 (from Ubuntu repository). Right now I am stuck with the parsing of the configuration files. The files are working flawless on the old server but lead to a parsing error on startup on the new. I tried delving into the source code but didn't have the time to really understand all called functions. I'm not sure where the error is, because the formatting of the filter looks quite right to me. I'm pasting the error and the relevant portion of the configuration file, in hope someone sees where my problem is. # cat /var/log/freeradius/radius.log Error: users.smart[11]: Parse error (reply) for entry user: failed to parse Ascend binary attribute: failed to parse Ascend binary attribute: # cat users.smart user User-Password := "password" Service-Type = Framed-User, Framed-Protocol = PPP, Ascend-Assign-IP-Pool = 1, Framed-Netmask = "255.255.255.255", Ascend-Metric = 1, Framed-Routing = None, Ascend-Idle-Limit = 3600, Ascend-Route-IP = Route-IP-Yes, Ascend-Data-Filter = "ip in drop udp dstport = 9", Ascend-Data-Filter = "generic in forward 0 0 0" Regards, Tobias -- View this message in context: http://freeradius.1045715.n5.nabble.com/Parse-error-after-Freeradius-Migrati... Sent from the FreeRadius - User mailing list archive at Nabble.com.
Hi,
# cat /var/log/freeradius/radius.log Error: users.smart[11]: Parse error (reply) for entry user: failed to parse Ascend binary attribute: failed to parse Ascend binary attribute:
# cat users.smart user User-Password := "password"
I probably wont be the first person to tell you that this line should be user Cleartext-Password := "password"
Ascend-Data-Filter = "ip in drop udp dstport = 9", Ascend-Data-Filter = "generic in forward 0 0 0"
the error is related to one/both of these binary entries. the dictinary file has pretty good docs: read "dictionary.ascend" perhaps you havent got the dictionary included? if you've stripped the 2.x config or just dumped the 1.x config into place things just wont work alan
Alan Buxey wrote:
Hi,
# cat /var/log/freeradius/radius.log Error: users.smart[11]: Parse error (reply) for entry user: failed to parse Ascend binary attribute: failed to parse Ascend binary attribute:
# cat users.smart user User-Password := "password"
I probably wont be the first person to tell you that this line should be
user Cleartext-Password := "password"
Ascend-Data-Filter = "ip in drop udp dstport = 9", Ascend-Data-Filter = "generic in forward 0 0 0"
the error is related to one/both of these binary entries.
the dictinary file has pretty good docs: read "dictionary.ascend"
perhaps you havent got the dictionary included? if you've stripped the 2.x config or just dumped the 1.x config into place things just wont work
alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Thank you for the quick reply. Didn't know about the Cleartext-Password/User-Password, after reading a little, I think we will change our configuration file export accordingly. I checked about the dictionaries, all default dictionary files are included, including dictionary.ascend. The error is generated by the last line in the example (the generic filter), I confirmed this by swapping/deleting lines. I didn't just take all existing files from our 1.x installation and copied them over. In fact I started with the 2.x example configuration, including VirtualHosts and all the split files, and modified it to use our existing export files for the user configuration. Thanks for your suggestions, Tobias -- View this message in context: http://freeradius.1045715.n5.nabble.com/Parse-error-after-Freeradius-Migrati... Sent from the FreeRadius - User mailing list archive at Nabble.com.
hi, radiusd -X output is always very nice...as per the docs, so we dont have to take wild guesses. how about just Ascend-Data-Filter = "generic in forward" alan
participants (3)
-
Alan Buxey -
Alan DeKok -
tobias.gruenewald