Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Mar 2004 09:51:01 +0100 (=?ISO-8859-15?Q?Westeurop=E4ische_Normalzeit?=)
From:      Michael Bretterklieber <mbretter@a-quadrat.at>
To:        current@freebsd.org
Subject:   libradius, EAP, Message-Authenticator - patches
Message-ID:  <Pine.WNT.4.58.0403180937370.1776@BRUTUS>

next in thread | raw e-mail | index | archive | help
Hi,

I had to modify libradius to be able to proxy EAP requests between Mpd and
the RADIUS server.
If the EAP-Message attribute is present in a request, then also the
Message-Authenticator must be present, othwerwise the RADIUS server drops
the request. (The Message-Authenticator is an HMAC-MD5 Hash of the whole
request packet).
I'm using openssl for calculating the HMAC, and got rid of -lmd, but it
looks like, that this causes problems when doing a buildworld, because ssl
is build after libradius (output from 4-Stable):

> ===> lib/libradius
> rm -f .depend
> mkdep -f .depend -a      /compile/src/lib/libradius/radlib.c
> echo libradius.so.2: /usr/obj/compile/src/i386/usr/lib/libmd.a >> .depend
> cc -O -pipe  -Wall  -c /compile/src/lib/libradius/radlib.c -o radlib.o
> building static radius library
> ranlib libradius.a
> cc -pg -O -pipe  -Wall  -c /compile/src/lib/libradius/radlib.c -o
> radlib.po
> building profiled radius library
> ranlib libradius_p.a
> cc -fpic -DPIC -O -pipe  -Wall  -c /compile/src/lib/libradius/radlib.c -o
> radlib.So
> building shared library libradius.so.2
> /usr/obj/compile/src/i386/usr/libexec/elf/ld: cannot find -lssl
> *** Error code 1


It looks like we have to change the order of the _prebuild_libs in
src/Makefile.inc, but I'm not familiar with the build system, and I'm
not aware of the side-effects of this change.

The patches can be found here:
http://www.bretterklieber.com/freebsd/libradius.diff (4-Stable)
http://www.bretterklieber.com/freebsd/libradius5.diff (5-current)

It would be great, if somone could give me some advices how to solve the
problems above,

thanx,
bye,
--
------------------------------- ----------------------------------
Michael Bretterklieber          - http://www.bretterklieber.com
A-Quadrat Automation GmbH       - http://www.a-quadrat.at
Tel: ++43-(0)3172-41679         - GSM: ++43-(0)699 12861847
------------------------------- ----------------------------------
"...the number of UNIX installations has grown to 10, with more
expected..." - Dennis Ritchie and Ken Thompson, June 1972



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.WNT.4.58.0403180937370.1776>