Hi, I'm trying to build the pw-radius module in the contrib directory but can't seem to find the right library to add to the incantation.
I've tried installing the freeradius-dev package as well as the libradiusclient-ng-dev but still no radlib.h. A google on the error message[1] returns *exactly* two results so I'm kind of at a loss.
Can someone point me in the direction of the correct radius package to install to get this built?
[1] test# gcc -shared -I../../../include -Wall -g -o pw-radius.so radius.c -lradius radius.c:27:20: fatal error: radlib.h: No such file or directory compilation terminated.
--On Wednesday, September 30, 2015 6:48 PM -0500 dev devuan.2@gmail.com wrote:
Hi, I'm trying to build the pw-radius module in the contrib directory but can't seem to find the right library to add to the incantation.
I've tried installing the freeradius-dev package as well as the libradiusclient-ng-dev but still no radlib.h. A google on the error message[1] returns *exactly* two results so I'm kind of at a loss.
Can someone point me in the direction of the correct radius package to install to get this built?
[1] test# gcc -shared -I../../../include -Wall -g -o pw-radius.so radius.c -lradius radius.c:27:20: fatal error: radlib.h: No such file or directory compilation terminated.
Maybe
https://github.com/gblanchard/pecl-radius/blob/master/radlib.h
?
--Quanah
--
Quanah Gibson-Mount Platform Architect Zimbra, Inc. -------------------- Zimbra :: the leader in open source messaging and collaboration
On Wed, 30 Sep 2015, dev wrote:
Can someone point me in the direction of the correct radius package to install to get this built?
It's expecting Juniper/FreeBSD libradius.
https://github.com/freebsd/freebsd/tree/master/lib/libradius
On 09/30/2015 05:47 PM, Aaron Richton wrote:
It's expecting Juniper/FreeBSD libradius.
https://github.com/freebsd/freebsd/tree/master/lib/libradius
Thank you. Found a linux port[1] (libradius-linux) which seems to build[2]. I do have a pw-radius.so module now.
The README shows how to configure pw-radius for slapd.conf but I have a cn=config tree. What would my LDIF look like to add pw-radius.so? Specifically the radius.conf part?
#Load the pw-radius module dn: cn=module{0},cn=config changetype: modify add: olcModuleLoad olcModuleLoad: pw-radius.so config="/etc/radius.conf" << correct?
[1] https://github.com/speakinghedge/libradius-linux [2] http://pastebin.com/WbWfdhGy
openldap-technical@openldap.org