control-socket name one character short

Zoltan Ori z.ori at morehead-st.edu
Fri Oct 3 14:27:50 CEST 2008


I have installed version 2.1.1 on FreeBSD 7.0 from source obtained at download 
link on www.freeradius.org.  The server "just works"!  Thank you Mr. DeKok 
et. al.

I wanted to try radmin, so I copied control-socket from sites-available to 
sites-enabled. When I started the server I received

# radiusd -X
<snip>
radiusd: #### Opening IP addresses and Ports ####
listen {
        type = "auth"
        ipaddr = *
        port = 0
}
listen {
        type = "acct"
        ipaddr = *
        port = 0
}
listen {
        type = "control"
 listen {
        socket = "/usr/local/var/run/radiusd/radiusd.sock"
 }
Failed setting permissions on /usr/local/var/run/radiusd/radiusd.sock: No such 
file or directory
#
# ls /usr/local/var/run/radiusd
radiusd.soc

The socket was created but the name was missing a character

I tried on a FreeBSD 6.2 box with the same results. Other than not being able 
to enable control-socket, everything else works fine. 


I did try building from the github sources, but received an error:

. . .
 gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE 
-DNDEBUG -D_LIBRADIUS -I/usr/home/tester/Work/RADIUS/radius-2.1.1z/src -c 
valuepair.c  -fPIC -DPIC -o .libs/valuepair.o
valuepair.c: In function `pairread':
valuepair.c:1737: error: `pair' undeclared (first use in this function)
valuepair.c:1737: error: (Each undeclared identifier is reported only once
valuepair.c:1737: error: for each function it appears in.)
valuepair.c:1742: error: break statement not within loop or switch
valuepair.c:1747: error: case label not within a switch statement
valuepair.c:1762: error: break statement not within loop or switch
valuepair.c: At top level:
valuepair.c:1768: error: syntax error before "if"
gmake[4]: *** [valuepair.lo] Error 1
gmake[4]: Leaving directory 
`/usr/home/tester/Work/RADIUS/radius-2.1.1z/src/lib'
gmake[3]: *** [common] Error 2
gmake[3]: Leaving directory `/usr/home/tester/Work/RADIUS/radius-2.1.1z/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/usr/home/tester/Work/RADIUS/radius-2.1.1z/src'
gmake[1]: *** [common] Error 2
gmake[1]: Leaving directory `/usr/home/tester/Work/RADIUS/radius-2.1.1z'
gmake: *** [all] Error 2

Judging from the commit times, I believe valuepair.c was in the process of 
being changed and may already be fixed.

When do you sleep Mr. DeKok?

-- 
Zoltan Ori





More information about the Freeradius-Users mailing list