How to configure LDAP

Sautron Nick sautronnick at
Tue Feb 17 11:46:06 CET 2015

Yes, i have a warning for the modules rlm_ldap

root at test /home/freeradius-server-2.2.6/src/modules/rlm_ldap # ./configurechecking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for pthread_create in -lpthread... yes
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.
configure: creating ./config.status
config.status: creating Makefile

what to do in this case?

     Le Mardi 17 février 2015 14h21, Stefan Paetow <Stefan.Paetow at> a écrit :

 > Yes it is a debian 7.8, but I is not done the installation package but I have to install from source 

Ok, then you had to compile it... During the './configure' step, you should check the warnings. It is possible that you didn't have any LDAP development libraries installed, which means that LDAP support was not built during the 'make' step.

Stefan Paetow
Moonshot Industry & Research Liaison Coordinator

t: +44 (0)1235 822 125
gpg: 0x3FCE5142
xmpp: stefanp at
skype: stefan.paetow.janet
Lumen House, Library Avenue, Harwell Oxford, Didcot, OX11 0SG
Jisc is a registered charity (number 1149740) and a company limited by guarantee which is registered in England under Company No. 5747339, VAT No. GB 197 0632 86. Jisc’s registered office is: One Castlepark, Tower Hill, Bristol, BS2 0JA. T 0203 697 5800.
Jisc Collections and Janet Ltd. is a wholly owned Jisc subsidiary and a company limited by guarantee which is registered in England under Company No. number 2881024, VAT No. GB 197 0632 86. The registered office is: Lumen House, Library Avenue, Harwell, Didcot, Oxfordshire, OX11 0SG. T 01235 822200.


More information about the Freeradius-Users mailing list