Building FreeRadius with custom LDAP libraries

Nikolaos Milas nmilas at
Thu Sep 12 10:25:30 CEST 2013


I am trying to use 
to create custom FreeRadius RPMs for RHEL/CentOS 6.

The main aim is to add --with-dhcp compile option which is not included 
in the standard build.

The secondary aim is to build using custom ldap libraries, because we 
are using LTB OpenLDAP RPM packages 

The libraries as installed by these RPM packages are in 
/usr/local/openldap/lib64/ and /usr/local/openldap/include/

In the src.rpm I see:

    BuildRequires: openldap-devel

which I can change to:

    BuildRequires: openldap-ltb-debuginfo

but how can I define custom LDAP libraries?

Can I use something like:

export CPPFLAGS="${CPPFLAGS} -I/usr/local/openldap/include"
export LDFLAGS="${LDFLAGS} -L/usr/local/openldap/lib64" we do for building Dovecot, or

CXXFLAGS="${CXXFLAGS} -I/usr/local/openldap/include"; export CXXFLAGS
LDFLAGS="${LDFLAGS} -L/usr/local/openldap/lib64 -lldap -llber 
-R/usr/local/openldap/lib64"; export LDFLAGS we do for building PowerDNS?

( We have found the above for other software after significant effort. I 
hope it'll be easier with FreeRadius! :-) )

Please advise!


More information about the Freeradius-Users mailing list