OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Radius & mySQL

From: Stavros Filargiropoulos (sfalphanet.gr)
Date: Wed Aug 04 2004 - 01:24:08 CDT


Leland V. Lammert wrote:

> Trying to build a radius server that uses mySQL - from the docs
> neither the Lucent nor Cistron versions in ports do mySQL. I would
> like to use mySQL for the access DB for ease of admin maintenance, and
> possibly logs (applicatino is authorization for a WiFi router).
>
> Questions:
>
> 1) Is there a mySQL capable version of the Lucent or Cistron available
> somewhere?

freeradius is very feature rich

>
> 2) I tried freeradius, and would not compile. Seems to be a missing
> (krb5.h). Any chance this might be an easy fix?

I have successfully compiled freeradius 0.9.3 by appending
--without-rlm_krb55. So try this:

./configure --with-rlm_pgsql --without-rlm_krb5

Unless ofcourse you *need* kerberos 5.

>
> gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
> -DOPENSSL_NO_KRB5 -Wall -D_GNU_SOURCE -DNDEBUG -I../../include -c
> rlm_krb5.c -o rlm_krb5.o
> In file included from ../../include/radiusd.h:32,
> from rlm_krb5.c:35:
> /usr/include/netinet/in.h:195: warning: `INADDR_ANY' redefined
> ../../include/missing.h:73: warning: this is the location of the
> previous definition
> /usr/include/netinet/in.h:196: warning: `INADDR_LOOPBACK' redefined
> ../../include/missing.h:77: warning: this is the location of the
> previous definition
> /usr/include/netinet/in.h:199: warning: `INADDR_NONE' redefined
> ../../include/missing.h:81: warning: this is the location of the
> previous definition
> rlm_krb5.c:39: krb5.h: No such file or directory
> gmake[5]: *** [rlm_krb5.o] Error 1
> gmake[5]: Leaving directory
> `/usr/local/freeradius-1.0.0-pre3/src/modules/rlm_krb5'
> gmake[4]: *** [common] Error 1
> gmake[4]: Leaving directory
> `/usr/local/freeradius-1.0.0-pre3/src/modules'
> gmake[3]: *** [all] Error 2
> gmake[3]: Leaving directory
> `/usr/local/freeradius-1.0.0-pre3/src/modules'
> gmake[2]: *** [common] Error 1
> gmake[2]: Leaving directory `/usr/local/freeradius-1.0.0-pre3/src'
> gmake[1]: *** [all] Error 2
> gmake[1]: Leaving directory `/usr/local/freeradius-1.0.0-pre3/src'
> gmake: *** [common] Error 1
> *** Error code 2
>
>
> TIA,
>
> Lee