Problem with Freeradius 1.1.2 & OpenLDAP 2.3.20
Hello everyone, I am trying to make Freeradius 1.1.2 work with OpenLDAP2.3.20 (I was previously able to make it work perfectly with MySQL). When I try to configure and compile Freeradius without any options, I receive a "Segmentation Fault". When I try to configure it with -- with-rlm-ldap-lib-dir= ... & --with-rlm-ldap-include-dir= ... and when I run the ./configure, I have the following error : "checking for ldap_init in -lldap_r ... no checking for ldap.h ... no configure: warning : silently not building rlm_ldap configure: warning : FAILURE : rlm_ldap requires libldap_r ldap.h" I am sure my paths are correct, I am sure I have the file "ldap.h" in my OpenLDAP/include dir and I have a "libldap_r" directory in my OpenLDAP/libraries dir. My Linux is a Mandrake 10.2 Any idea of what is wrong ? Is it a version problem and so, should I try with older versions ? Did I miss something important ? Any help is welcome, Thanks, Nicolas Martin -------------------------------------------------------------------- Ce courriel est envoyé au travers de l' interface IMP: ch-bourg01.fr Ce message a été passé automatiquement à l' antivirus This email have been sent through Imap Mail Program: ch-bourg01.fr This message have been scanned with an antivirus scanner
En réponse à Nicolas Martin :
"checking for ldap_init in -lldap_r ... no checking for ldap.h ... no configure: warning : silently not building rlm_ldap configure: warning : FAILURE : rlm_ldap requires libldap_r ldap.h"
I am sure my paths are correct, I am sure I have the file "ldap.h" in my OpenLDAP/include dir and I have a "libldap_r" directory in my OpenLDAP/libraries dir.
Any idea of what is wrong ? Is it a version problem and so, should I try with older versions ? Did I miss something important ?
Please look for error messages in src/modules/rlm_ldap/config.log -- Nicolas Baradakis
Please look for error messages in src/modules/rlm_ldap/config.log
-- Nicolas Baradakis
The two main errors I can find are: /usr/bin/ld: cannot find -lldap_r collect2: ld returned 1 exit status configure: failed program was: #line 974 "configure" #include "confdefs.h" (3 times) and In file included from .../ldap.h:30 .../lber.h:29:24: lber_types.h: no such file or directory (and after that, an enormous number of syntax errors in "lber.h") It is true that I don't have any "lber_types.h" file, I only have a file called "lber_types.hin". But renaming this file does not solve the problem ... Thanks, Nicolas Martin -------------------------------------------------------------------- Ce courriel est envoyé au travers de l' interface IMP: ch-bourg01.fr Ce message a été passé automatiquement à l' antivirus This email have been sent through Imap Mail Program: ch-bourg01.fr This message have been scanned with an antivirus scanner
Nicolas Martin <nmartin@ch-bourg01.fr> wrote:
In file included from .../ldap.h:30 .../lber.h:29:24: lber_types.h: no such file or directory ... It is true that I don't have any "lber_types.h" file
The LDAP headers are telling you they need that "lber_types.h". If you don't have it, then nothing you do to FreeRADIUS will change anything. You MUST fix your LDAP installation so that it works.
, I only have a file called "lber_types.hin". But renaming this file does not solve the problem ...
Where is this file? It looks like you didn't install the LDAP client code... Alan DeKok.
participants (3)
-
Alan DeKok -
Nicolas Baradakis -
Nicolas Martin