Building FreeRadius with custom LDAP libraries

Nikolaos Milas nmilas at noa.gr
Thu Sep 12 12:02:10 CEST 2013


On 12/9/2013 11:47 πμ, Arran Cudbard-Bell wrote:

>
> --with-rlm-ldap-lib-dir=
> --with-rlm-ldap-include-dir=
>
> Top level configure.

Thanks Arran,

It worked! I have built and installed the new RPMs and things are 
working OK.

Interestingly, trying to build with the default system libs was failing:

During RPMbuild:

    ...
    checking for ldap_init in -lldap_r... no
    checking for ldap.h... yes
    configure: WARNING: silently not building rlm_ldap.
    configure: WARNING: FAILURE: rlm_ldap requires: libldap_r.
    ...

and then (later):

error: File not found: 
/home/fradius1/rpmbuild/BUILDROOT/freeradius-2.2.0-3.el6.x86_64/usr/lib64/freeradius/rlm_ldap.so
error: File not found: 
/home/fradius1/rpmbuild/BUILDROOT/freeradius-2.2.0-3.el6.x86_64/usr/lib64/freeradius/rlm_ldap-2.2.0.so

But I have also installed the standard openldap and openldap-devel 
packages (openldap 2.4.23, as available by default repos) and:

$ ls -la /usr/lib64/*ldap*
lrwxrwxrwx. 1 root root 10 Sep 21 2012 /usr/lib64/libldap-2.4.so.2 -> 
libldap.so
-rw-r--r-- 1 root root 781914 Mar 20 15:57 /usr/lib64/libldapbackend.a
-rwxr-xr-x 1 root root 1151 Mar 20 15:57 /usr/lib64/libldapbackend.la
-rwxr-xr-x 1 root root 379419 Mar 20 15:57 /usr/lib64/libldapbackend.so
lrwxrwxrwx. 1 root root 12 Sep 21 2012 /usr/lib64/libldap_r-2.4.so.2 -> 
libldap_r.so
lrwxrwxrwx 1 root root 29 Jun 4 19:30 /usr/lib64/libldap_r.so -> 
/lib64/libldap_r-2.4.so.2.5.6
lrwxrwxrwx 1 root root 27 Jun 4 19:30 /usr/lib64/libldap.so -> 
/lib64/libldap-2.4.so.2.5.6
-rwxr-xr-x 1 root root 40320 Feb 22 2013 /usr/lib64/libsmbldap.so.0

...which is the default lib dir.

Solely for my comprehension, what could have been the reason for that 
failure? Shouldn't it work when looking for libs in the default libs dir?

Thanks again,
Nick



More information about the Freeradius-Users mailing list