How to configure LDAP
Hello everyone, I want to know, how to configure ldap with freeradius 2 please ? Best regards
Hello, After configured the module/ldap and users file at the launch of freeradius I have this error : /usr/local/etc/raddb/modules/ldap[29]: Failed to link to module 'rlm_ldap': rlm_ldap.so: cannot open shared object file: No such file or directory /usr/local/etc/raddb/sites-enabled/default[305]: Failed to find "ldap" in the "modules" section. /usr/local/etc/raddb/sites-enabled/default[305]: Failed to parse "ldap" entry. How to avoid this error please ? Best Regards Le Lundi 16 février 2015 10h42, Sautron Nick <sautronnick@yahoo.fr> a écrit : Hello everyone, I want to know, how to configure ldap with freeradius 2 please ? Best regards - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
After configured the module/ldap and users file
at the launch of freeradius I have this error : /usr/local/etc/raddb/modules/ldap[29]: Failed to link to module 'rlm_ldap': rlm_ldap.so: cannot open shared object file: No such file or directory /usr/local/etc/raddb/sites-enabled/default[305]: Failed to find "ldap" in the "modules" section. /usr/local/etc/raddb/sites-enabled/default[305]: Failed to parse "ldap" entry.
If you're on Debian/Ubuntu/RHEL/CentOS and use the packages, you should install the freeradius-ldap package. With Regards Stefan Paetow Moonshot Industry & Research Liaison Coordinator t: +44 (0)1235 822 125 gpg: 0x3FCE5142 xmpp: stefanp@jabber.dev.ja.net skype: stefan.paetow.janet Lumen House, Library Avenue, Harwell Oxford, Didcot, OX11 0SG jisc.ac.uk 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.
Yes it is a debian 7.8, but I is not done the installation package but I have to install from source Le Mardi 17 février 2015 12h54, Stefan Paetow <Stefan.Paetow@jisc.ac.uk> a écrit :
After configured the module/ldap and users file
at the launch of freeradius I have this error : /usr/local/etc/raddb/modules/ldap[29]: Failed to link to module 'rlm_ldap': rlm_ldap.so: cannot open shared object file: No such file or directory /usr/local/etc/raddb/sites-enabled/default[305]: Failed to find "ldap" in the "modules" section. /usr/local/etc/raddb/sites-enabled/default[305]: Failed to parse "ldap" entry.
If you're on Debian/Ubuntu/RHEL/CentOS and use the packages, you should install the freeradius-ldap package. With Regards Stefan Paetow Moonshot Industry & Research Liaison Coordinator t: +44 (0)1235 822 125 gpg: 0x3FCE5142 xmpp: stefanp@jabber.dev.ja.net skype: stefan.paetow.janet Lumen House, Library Avenue, Harwell Oxford, Didcot, OX11 0SG jisc.ac.uk 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. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
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@jabber.dev.ja.net skype: stefan.paetow.janet Lumen House, Library Avenue, Harwell Oxford, Didcot, OX11 0SG jisc.ac.uk 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.
Yes, i have a warning for the modules rlm_ldap root@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@jisc.ac.uk> 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@jabber.dev.ja.net skype: stefan.paetow.janet Lumen House, Library Avenue, Harwell Oxford, Didcot, OX11 0SG jisc.ac.uk 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.
You're probably missing the development headers for ldap. Easiest solution: don't compile via configure, but build a debian package. Install the packages 'build-essential' and 'devscripts', go to /home/freeradius-server-2.2.6/ and run 'debuild -i -us -uc -b'. This will error if you're missing the dev-packages, and show what packages you're missing. On 17-02-15 11:46, Sautron Nick wrote:
Yes, i have a warning for the modules rlm_ldap
root@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@jisc.ac.uk> 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@jabber.dev.ja.net skype: stefan.paetow.janet Lumen House, Library Avenue, Harwell Oxford, Didcot, OX11 0SG
jisc.ac.uk
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.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Hi,
Yes, i have a warning for the modules rlm_ldap
root@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
building from source..... so need the LDAP development stuff apt-get install libldap2-dev alan
Thanks you so much, it's works now. After installation of libldap2-dev, i did "./configure" , "make && make install" of module rlm_ldap. Have a nice day Nick Le Mardi 17 février 2015 16h00, "A.L.M.Buxey@lboro.ac.uk" <A.L.M.Buxey@lboro.ac.uk> a écrit : Hi,
Yes, i have a warning for the modules rlm_ldap
root@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
building from source..... so need the LDAP development stuff apt-get install libldap2-dev alan
participants (4)
-
A.L.M.Buxey@lboro.ac.uk -
Herwin Weststrate -
Sautron Nick -
Stefan Paetow