mainGNU radius - Support: sr #104796, Help needed compiling and...

 
 

sr #104796: Help needed compiling and installing GNU radius server.

Submitter:  None
Submitted:  Mon 31 Oct 2005 06:56:44 PM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  None
Privacy:  Public Assigned to:  None
Originator Email:  -email is unavailable- Open/Closed:  Open
Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 05 Feb 2007 06:10:09 PM UTC, comment #1: 

I'm having the same problem, did you ever find a fix?

Anonymous
Mon 31 Oct 2005 06:56:44 PM UTC, original submission:  

I'm trying to install GNU radius on Fedora core 4. I have had FC4 installed for a few months now. This is not a server, this is a test system to do programming and stuff on before it goes to the real server. I accidently installed then uninstalled freeradius. I'm trying to use GNU radius because that's what the real server runs. The test machine is on a 1Ghz processor system.

I compile with argp "./configure --with-included-argp".
I run make "make".
I run make check "make check".
Make check spits out the following:
_______________________________________________________________________
## -------------------------- ##
## GNU Radius 1.3 test suite. ##
## -------------------------- ##
1: Starting radius server ok
2: Status-Server ok
3: Basic Authentication Types ok
4: Reply attributes FAILED (reply.at:32)
5: BEGIN Keyword FAILED (begin-kw.at:26)
6: DEFAULT Keyword ok
7: Match-Profile ok
8: hints ok
9: huntgroups ok
10: Scheme authentication ok
11: Access control lists ok
12: Expiration attribute ok
13: menus skipped (menu.at:42)
14: accounting and simultaneous use control ok
15: rewrite rules ok
16: external procedures ok
17: filters ok
18: Scheme accounting ok
19: tunnel attributes ok
20: Log-Mode-Mask attribute ok
21: Shutting down radius server ok
22: Starting radius server ok
23: Basic Authentication Types (proxy) ok
24: Case-insensitive realms ok
25: VSA propagation ok
26: menus (proxy) skipped (proxy-menu.at:42)
27: nested realms ok
28: proxy accounting ok
29: tunnel attributes (proxy) ok
30: Shutting down radius server ok

## ------------- ##
## Test results. ##
## ------------- ##

ERROR: 28 tests were run,
2 failed unexpectedly.
2 tests were skipped.
## -------------------------- ##
## testsuite.log was created. ##
## -------------------------- ##

Please send `testsuite.log' and all information you think might help:

To: <bug-gnu-radius@gnu.org>
Subject: [GNU Radius 1.3] testsuite: 4 5 failed


You may investigate any problem if you feel able to do so, in which
case the test suite provides a good starting point.

make[3]: * [check-local] Error 1
make[3]: Leaving directory `/downloads/tools/radius-1.3/tests'
make[2]: * [check-am] Error 2
make[2]: Leaving directory `/downloads/tools/radius-1.3/tests'
make[1]: * [check-recursive] Error 1
make[1]: Leaving directory `/downloads/tools/radius-1.3/tests'
make: * [check-recursive] Error 1
_____________________________________________________________________

The testsuite.log file shows

********************************************************************************************************
## -------------------------- ##
## GNU Radius 1.3 test suite. ##
## -------------------------- ##

testsuite: command line was:
$ ./testsuite

## ----------- ##
## ChangeLogs. ##
## ----------- ##

testsuite: ../doc/texinfo/ChangeLog:
| 2004-11-20 Sergey Poznyakoff <gray@Mirddin.farlep.net>
|
| * acct.texi: Updated
| * attributes.texi: Updated
| * auth.texi: Updated
| * configure.texi: Updated
| * gradient.texi: Updated
| * radctl.texi: Updated
|
| 2004-11-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>

testsuite: ../ChangeLog:
| 2004-11-20 Sergey Poznyakoff
|
| * configure.ac: Raised version number to 1.3
| * NEWS: Likewise
|
| * raddb/sqlserver: Updated
| * raddb/users: Updated
| * radiusd/exec.c: Minor comment.
| * sql/mysql.c (do_mysql_query): Actually disconnect only if mysql
| returned CR_SERVER_GONE_ERROR

testsuite: ../po/ChangeLog:
| 2004-16-11 Sergey Poznyakoff
|
| * fr.po: Updated
| * pl.po: Updated
| * ru.po: Updated
|
| 2004-09-16 Sergey Poznyakoff
|
| * LINGUAS: Added Catalan
| * pl.po: Updated

testsuite: ../intl/ChangeLog:
| 2003-05-22 GNU <bug-gnu-gettext@gnu.org>
|
| * Version 0.12.1 released.
|

## --------- ##
## Platform. ##
## --------- ##

hostname = zzz.avcinc.com
uname -m = i686
uname -r = 2.6.11-1.1369_FC4
uname -s = Linux
uname -v = #1 Thu Jun 2 22:55:56 EDT 2005

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /downloads/tools/radius-1.3/tests
PATH: /downloads/tools/radius-1.3/radiusd
PATH: /downloads/tools/radius-1.3/radtest
PATH: /downloads/tools/radius-1.3
PATH: /usr/kerberos/sbin
PATH: /usr/kerberos/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /usr/X11R6/bin

testsuite: atconfig:
| # Configurable variable values for building test suites.
| # Generated by ./config.status.
| # Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
|
| # The test suite will define top_srcdir=/../.. etc.
| at_testdir='tests'
| abs_builddir='/downloads/tools/radius-1.3/tests'
| at_srcdir='.'
| abs_srcdir='/downloads/tools/radius-1.3/tests'
| at_top_srcdir='..'
| abs_top_srcdir='/downloads/tools/radius-1.3/tests/..'
| at_top_builddir='../'
| abs_top_builddir='/downloads/tools/radius-1.3/tests/../.'
|
| AUTOTEST_PATH='tests'
|
| SHELL=${CONFIG_SHELL-'/bin/sh'}

testsuite: atlocal:
| # tests/atlocal. Generated from atlocal.in by configure. -*- shell-script -*-
| # Configurable variable values for tar test suite.
| # Copyright (C) 2004 Free Software Foundation, Inc.
|
| SOURCEDIR=$abs_srcdir
| BUILDDIR=$abs_builddir
| PATH=/downloads/tools/radius-1.3/tests:/downloads/tools/radius-1.3/tests/.././radiusd:/downloads/tools/radius-1.3/tests/.././radtest:$top_srcdir:$srcdir:$PATH| GUILE_LOAD_PATH=$abs_top_builddir/radscm
| export GUILE_LOAD_PATH
|
| ZERO_LOGS=1
|
| make_raddb() {
| NAME=$1
| ABS_NAME=$builddir/$1
| shift
|
| if test ! -f $ABS_NAME/config.in ; then
| cp -r $SOURCEDIR/$NAME $builddir
| chmod -R u+w $ABS_NAME
| fi
|
| EXPR=`/downloads/tools/radius-1.3/tests/findport -c5 -s1644 "-fs^@TEST_AUTH_PORT@^%d^;\
| s^@TEST_ACCT_PORT@^%d^;\
| s^@TEST_SNMP_PORT@^%d^;\
| s^@PROXY_AUTH_PORT@^%d^;\
| s^@PROXY_ACCT_PORT@^%d^;\
| s^@USER@^%u^;\
| s^@BUILDDIR@^$BUILDDIR^;\
| s^@SOURCEDIR@^$SOURCEDIR^;\
| s^@GUILE@^$GUILE^;\
| s^@SNMP@^$SNMP^;"`
|
| for file in $*
| do
| sed $EXPR $ABS_NAME/${file}.in > $ABS_NAME/$file
| done
| [ -d $ABS_NAME/log ] || mkdir $ABS_NAME/log
| [ -d $ABS_NAME/acct ] || mkdir $ABS_NAME/acct
| if [ x"$ZERO_LOGS" != x ]; then
| for file in radwtmp radutmp radius.log radius.info radius.debug radius.stderr
| do
| cat /dev/null > $ABS_NAME/log/$file
| done
| fi
| }
|
| start_server() {
| /downloads/tools/radius-1.3/tests/.././radiusd/radiusd -d $1 \
| -l $1/log \
| -a $1/acct \
| -P $1
| N=1
| while [ ! -r $1/radiusd.pid ]
| do
| sleep 1
| N=`expr $N + 1`
| if [ $N -gt 5 ]; then
| exit 1
| fi
| done
| }
|
| stop_server() {
| for dir in $*
| do
| if test -r $dir/radiusd.pid; then
| kill -TERM `cat $dir/radiusd.pid`
| sleep 2
| if test -r $dir/radiusd.pid ; then
| kill -KILL `cat $dir/radiusd.pid`
| fi
| fi
| done
| }
|
| LOCAL_CONF=$BUILDDIR/raddb
| PROXY_CONF=$BUILDDIR/proxy
|
| rm -f $LOCAL_CONF/radiusd.pid $PROXY_CONF/radiusd.pid
|
| begin_server() {
| case $1 in
| proxy) RADIUSD_CONFDIR=$PROXY_CONF;;
| *) RADIUSD_CONFDIR=$LOCAL_CONF;;
| esac
| if [ -r $RADIUSD_CONFDIR/radiusd.pid ]; then
| :
| else
| make_raddb raddb dictionary config client.conf users acct.scm realms
| make_raddb proxy dictionary client.conf config realms
| start_server $LOCAL_CONF
| test "$1" = "proxy" && start_server $PROXY_CONF
| trap "stop_server $LOCAL_CONF $PROXY_CONF" 1 3 15
| fi
| echo $RADIUSD_CONFDIR > $BUILDDIR/confdir
| }
|
| end_server() {
| stop_server $LOCAL_CONF $PROXY_CONF
| }

## ---------------- ##
## Tested programs. ##
## ---------------- ##

testsuite.at:24: /downloads/tools/radius-1.3/radiusd/radiusd --version
lt-radiusd: GNU Radius version 1.3 (i686-pc-linux-gnu)
Compilation platform: linux
Debugging flags:
Compilation flags: PWD_SHADOW=SHADOW USE_SERVER_GUILE USE_LOADABLE_MODULES
Compilation defaults:
Ports in use:
AUTH: 1812
ACCT: 1813
Paths:
configuration directory: /usr/local/etc/raddb
logging directory: /var/log
accounting directory: /var/log/radacct
pidfile directory: /var/run

Report bugs to <bug-gnu-radius@gnu.org>

## ------------------ ##
## Running the tests. ##
## ------------------ ##
testsuite: starting at: Mon Oct 31 12:16:17 MST 2005
1. Starting radius server (begin.at:21): ok
2. Status-Server (status-server.at:21): ok (0m0.034s 0m0.062s)
3. Basic Authentication Types (basic-auth.at:21): ok (0m0.036s 0m0.061s)
6. DEFAULT Keyword (default-kw.at:21): ok (0m0.092s 0m0.189s)
7. Match-Profile (match-profile.at:21): ok (0m0.125s 0m0.250s)
8. hints (hints.at:21): ok (0m0.112s 0m0.170s)
9. huntgroups (huntgroups.at:21): ok (0m0.052s 0m0.132s)
10. Scheme authentication (scheme-auth.at:21): ok (0m0.084s 0m0.186s)
11. Access control lists (acl.at:21): ok (0m0.036s 0m0.059s)
12. Expiration attribute (expiration.at:21): ok (0m0.068s 0m0.112s)
13. menus (menu.at:21): skipped (menu.at:42)
14. accounting and simultaneous use control (acct.at:21): ok (0m0.107s 0m0.272s)
15. rewrite rules (rewrite.at:21): ok (0m0.121s 0m0.255s)
16. external procedures (execwait.at:21): ok (0m0.102s 0m0.183s)
17. filters (filter.at:21): ok (0m0.201s 0m0.361s)
18. Scheme accounting (scheme-acct.at:21): ok (0m0.059s 0m0.128s)
19. tunnel attributes (tunnel.at:21): ok (0m0.029s 0m0.063s)
20. Log-Mode-Mask attribute (log-mode.at:21): ok (0m0.062s 0m0.129s)
21. Shutting down radius server (end.at:21): ok (0m0.005s 0m0.023s)
22. Starting radius server (begin-proxy.at:21): ok
23. Basic Authentication Types (proxy) (proxy-basic-auth.at:21): ok (0m0.187s 0m0.371s)
24. Case-insensitive realms (proxy-ignorecase.at:21): ok (0m0.029s 0m0.064s)
25. VSA propagation (proxy-vsa.at:21): ok (0m0.028s 0m0.067s)
26. menus (proxy) (proxy-menu.at:21): skipped (proxy-menu.at:42)
27. nested realms (proxy-nested.at:21): ok (0m0.030s 0m0.064s)
28. proxy accounting (proxy-acct.at:21): ok (0m0.062s 0m0.122s)
29. tunnel attributes (proxy) (proxy-tunnel.at:21): ok (0m0.033s 0m0.063s)
30. Shutting down radius server (end-proxy.at:21): ok (0m0.008s 0m0.029s)
testsuite: ending at: Mon Oct 31 12:16:37 MST 2005
testsuite: test suite duration: 0h 0m 20s

## ------------- ##
## Test results. ##
## ------------- ##

ERROR: 28 tests were run,
2 failed unexpectedly.
2 tests were skipped.

## ------------------------ ##
## Summary of the failures. ##
## ------------------------ ##
Failed tests:
GNU Radius 1.3 test suite test groups:

NUM: FILENAME:LINE TEST-GROUP-NAME
KEYWORDS

4: reply.at:21 Reply attributes
reply
5: begin-kw.at:21 BEGIN Keyword
begin-kw

Skipped tests:
GNU Radius 1.3 test suite test groups:

NUM: FILENAME:LINE TEST-GROUP-NAME
KEYWORDS

13: menu.at:21 menus
menu
26: proxy-menu.at:21 menus (proxy)
proxy-menu

## ---------------------- ##
## Detailed failed tests. ##
## ---------------------- ##

4. reply.at:21: testing ...
reply.at:27: radtest -d `cat $BUILDDIR/confdir` --no-interactive -f script
reply.at:32: radtest -d `cat $BUILDDIR/confdir` --no-interactive -f script
--- - 2005-10-31 12:16:19.949037000 -0700
+++ /downloads/tools/radius-1.3/tests/testsuite.dir/at-stdout 2005-10-31 12:16:19.000000000 -0700
@@ -1,2 +1,2 @@
-PASS
+FAIL

4. reply.at:21: 4. Reply attributes (reply.at:21): FAILED (reply.at:32)

5. begin-kw.at:21: testing ...
begin-kw.at:26: radtest -d `cat $BUILDDIR/confdir` --no-interactive -f script
--- - 2005-10-31 12:16:20.148112000 -0700
+++ /downloads/tools/radius-1.3/tests/testsuite.dir/at-stdout 2005-10-31 12:16:20.000000000 -0700
@@ -1,2 +1,2 @@
-PASS
+FAIL

5. begin-kw.at:21: 5. BEGIN Keyword (begin-kw.at:21): FAILED (begin-kw.at:26)
********************************************************************************************************

Let me know if you want the log of the ./configure process.
I had to apply the patch to make it compile at all on fedora. It compiles without errors, but the make check fails. After I do a make install, it always says:

radtest: debug: client.c:247:grad_client_send0: sending Access-Request
radtest: debug: server 127.0.0.1:1812
radtest: debug: send: User-Name = (STRING) test
radtest: debug: send: NAS-IP-Address = (IPADDR) 127.0.0.1
radtest: debug: send: User-Password = (STRING) \046\373\326\026\207\146\155\000\200\132\113\352\161\027\306\035
radtest: debug: client.c:349:grad_client_send0: no response. retrying.
radtest: debug: client.c:357:grad_client_send0: no reply from 127.0.0.1:1812
Authentication failed. Reply code 0
_______________________________________________________________________________

The config files are as follows:

config
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
# For detailed description, run:
# info Radius config

option {
max-requests 1024;
resolve no;
};

logging {
prefix-hook "default_log_prefix";
channel default {
file "radius.log";
print-category yes;
print-level yes;
};
channel info {
file "radius.info";
print-pid yes;
};
channel debug {
file "radius.debug";
};
category auth {
print-auth yes;
print-failed-pass yes;
};
category info {
channel info;
};
category =debug {
channel debug;
};
category * {
channel default;
};
};

auth {
max-requests 127;
request-cleanup-delay 2;
detail yes;
strip-names yes;
checkrad-assume-logged yes;
};

acct {
max-requests 127;
request-cleanup-delay 2;
};

rewrite {
load "checknas.rw";
load "log-hook.rw";
};

# snmp {
# listen no;
# };
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

client.conf
ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
# For detailed description, run:
# info Radius client.conf
server local 127.0.0.1 foobar 1812 1813
source_ip 127.0.0.1
timeout 3
retry 1
ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc

clients
ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
# For detailed description, run:
# info Radius clients

#Client Name Key
#---------------- -------------------
localhost foobar
216.126.204.150 calculate
216.126.204.151 calculate
216.126.204.153 calculate
216.126.204.152 calculate
165.154.11.2 calculate
165.154.11.3 calculate
165.154.11.4 calculate
68.84.4.41 foobar
ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd

naslist
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
# For detailed description, run:
# info Radius naslist

# NAS Name Short Name Type Flags
#---------------- ---------- ---- ---------------
localhost local true
DEFAULT ikano true
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

users
fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
# For detailed description, run:
# info Radius users

#DEFAULT Auth-Type = SQL,
# Simultaneous-Use = 1
# Service-Type = Framed-User,
# Framed-Protocol = PPP
DEFAULT Auth-Type = Local, Password-Location = AVC, Simultaneous-Use = 1
#DEFAULT Auth-Type = Accept, Password-Location = AVC, Simultaneous-Use = 1
Service-Type = Framed-User, Framed-Protocol = PPP

fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
Did I miss anything? Is there some sort of trick to compile on fedora? Thanx!
Gerald

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2005-10-31 None Carbon-Copy- Added ger_87410 --AT-- yahoo --DOT-- com

Back to the top

Powered by Savane 3.13-d3ae.
Corresponding source code