radclient doesn't work

Bug #430732 reported by Marc Deslauriers
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
freeradius (Debian)
Fix Released
Unknown
freeradius (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: freeradius

The radclient tool in freeradius doesn't work:

# radtest testuser testpass localhost 10 testing123
radclient: socket: cannot initialize udpfromto: Function not implemented

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

This affects jaunty and karmic.

Intrepid is ok.

Revision history for this message
Murray (mjrmua) wrote :

I'm also affected, does anyone have a work around?

Revision history for this message
Murray (mjrmua) wrote :

Using '127.0.0.1' instead of 'localhost' solves the problem for me.

Revision history for this message
Alan DeKok (aland-freeradius) wrote :

Ah... "localhost" likely means ::1, or IPv6 transport.

If the OS supplies the header files, but doesn't have the code to implement the feature, then that's likely the error you'll get.

The simplest thing to do is to disable udpfromto via the "configure" script.

Revision history for this message
Chuck Short (zulcss) wrote :

Setting it to confirmed based on feedback here. I dont have a fix for it yet ;)

Regards
chuck

Changed in freeradius (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Yucong Sun (sunyucong) wrote :

removing

::1 localhost

in /etc/hosts works for me.

This is definitely an ipv6 issue.

Revision history for this message
Andy Rabagliati (andyr) wrote :

Yucong Sun's 2009-10-15 fix solved it for me.

Revision history for this message
chemcat9 (chemcat9) wrote :

Confirming with Ubuntu 9.04, I commented out the line in the file /etc/hosts so that the file reads:

127.0.0.1 localhost
127.0.1.1 machinename

# The following lines are desirable for IPv6 capable hosts
# ::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

Restarting the server I get the response:

user@machinename:/etc$ sudo /etc/init.d/freeradius start
 * Starting FreeRADIUS daemon freeradius
                                          [ OK ]
user@machinename:/etc$ ps -e | grep freeradius
19197 ? 00:00:00 freeradius

lenovo@lenovo-laptop:/etc$ radtest test secret localhost 1812 testing123
Sending Access-Request of id 117 to 127.0.0.1 port 1812
 User-Name = "test"
 User-Password = "secret"
 NAS-IP-Address = 127.0.1.1
 NAS-Port = 1812
rad_recv: Access-Reject packet from host 127.0.0.1 port 1812, id=117, length=20

Revision history for this message
Brian Candler (b-candler) wrote :

Still a problem in 10.04 LTS

Revision history for this message
Josip Rodin (joy) wrote : Re: [Bug 430732] Re: radclient doesn't work

On Wed, Feb 09, 2011 at 01:36:02PM -0000, Brian Candler wrote:
> Still a problem in 10.04 LTS

BTW for explanation and workaround, have a look at
http://bugs.debian.org/569614

--
     2. That which causes joy or happiness.

Revision history for this message
William Van Hevelingen (blkperl) wrote :

Looks like Debian synced the bug fix and the bug fix landed in precise.

Changed in freeradius (Ubuntu):
status: Confirmed → Fix Released
Changed in freeradius (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.