Having a hard time setting up my new freeRADIUS 3.0.12 on Ubuntu 16.04. I am trying to turn on ldap; I altered the file in sites-available, and hand created a symlink to it from sites-enabled. But now I am getting an error in radiusd -X of /usr/local/etc/raddb/mods-enabled/ldap[8]: Failed to link to module 'rlm_ldap': /usr/local/lib/rlm_ldap.so: cannot open shared object file: No such file or directory I have verified that there is no rlm-ldap.so file in /usr/local/lib. This site (https://access.redhat.com/solutions/2262901) suggests that I missed something during the make process. Are shared objects only created during the make process? How do I get one when it is missing? All the stuff I am reading implies all that is needed to make any module work is the symlink. Daniel Wruck
Daniel Wruck wrote:
I have verified that there is no rlm-ldap.so file in /usr/local/lib. This site (https://access.redhat.com/solutions/2262901) suggests that I missed something during the make process. Are shared objects only created during the make process? How do I get one when it is missing? All the stuff I am reading implies all that is needed to make any module work is the symlink.
Check the output during build/configure. My first guess would be missing devel files for separately packaged ldap libraries.
On Fri, Oct 28, 2016 at 02:29:08AM +0000, Daniel Wruck wrote:
Having a hard time setting up my new freeRADIUS 3.0.12 on Ubuntu 16.04. I am trying to turn on ldap; I altered the file in sites-available, and hand created a symlink to it from sites-enabled. But now I am getting an error in radiusd -X of
/usr/local/etc/raddb/mods-enabled/ldap[8]: Failed to link to module 'rlm_ldap': /usr/local/lib/rlm_ldap.so: cannot open shared object file: No such file or directory
As already mentioned, # apt-get install libldap2-dev before building. But if you follow the instructions to build packages for your system, this should all be sorted for you (and you'll have packages which is cleaner on your system as well). See http://wiki.freeradius.org/building/Debian%20and%20Ubuntu "Getting the source" and "Building Packages" Matthew -- Matthew Newton, Ph.D. <mcn4@leicester.ac.uk> Systems Specialist, Infrastructure Services, I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom For IT help contact helpdesk extn. 2253, <ithelp@le.ac.uk>
I would have loved to had a package to install. But no joy for Ubuntu users. "As of March 2016, the Ubuntu repositories contain only version 2 of the server, which is end-of-life." As for this dependency, where in the documentation was this libldap2-dev dependency mentioned? Daniel Wruck -----Original Message----- From: Freeradius-Users [mailto:freeradius-users-bounces+daniel.wruck=fbchammond.com@lists.freeradius.org] On Behalf Of Matthew Newton Sent: Friday, October 28, 2016 5:27 AM To: FreeRadius users mailing list <freeradius-users@lists.freeradius.org> Subject: Re: ldap shared object On Fri, Oct 28, 2016 at 02:29:08AM +0000, Daniel Wruck wrote:
Having a hard time setting up my new freeRADIUS 3.0.12 on Ubuntu 16.04. I am trying to turn on ldap; I altered the file in sites-available, and hand created a symlink to it from sites-enabled. But now I am getting an error in radiusd -X of
/usr/local/etc/raddb/mods-enabled/ldap[8]: Failed to link to module 'rlm_ldap': /usr/local/lib/rlm_ldap.so: cannot open shared object file: No such file or directory
As already mentioned, # apt-get install libldap2-dev before building. But if you follow the instructions to build packages for your system, this should all be sorted for you (and you'll have packages which is cleaner on your system as well). See http://wiki.freeradius.org/building/Debian%20and%20Ubuntu "Getting the source" and "Building Packages" Matthew -- Matthew Newton, Ph.D. <mcn4@leicester.ac.uk> Systems Specialist, Infrastructure Services, I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom For IT help contact helpdesk extn. 2253, <ithelp@le.ac.uk> - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Oct 28, 2016, at 8:35 AM, Daniel Wruck <daniel.wruck@fbchammond.com> wrote:
I would have loved to had a package to install. But no joy for Ubuntu users.
"As of March 2016, the Ubuntu repositories contain only version 2 of the server, which is end-of-life."
That is not an appropriate response. Matthew pointed you to a Wiki page which tells you how to build your own package.
As for this dependency, where in the documentation was this libldap2-dev dependency mentioned?\
That is also not an appropriate response. Matthew pointed you to the Wiki page which contains exactly the documentation you're looking for. It is ridiculous to complain about the lack of documentation where you refuse to read the documentation you're given. Alan DeKok.
Please forgive my ignorance because that was the root cause of all of this. But I did read - every bit I could get my hands on. And I followed all the instructions, but I just missed something along the way. Daniel Wruck -----Original Message----- From: Freeradius-Users [mailto:freeradius-users-bounces+daniel.wruck=fbchammond.com@lists.freeradius.org] On Behalf Of Alan DeKok Sent: Friday, October 28, 2016 7:48 AM To: FreeRadius users mailing list <freeradius-users@lists.freeradius.org> Subject: Re: ldap shared object On Oct 28, 2016, at 8:35 AM, Daniel Wruck <daniel.wruck@fbchammond.com> wrote:
I would have loved to had a package to install. But no joy for Ubuntu users.
"As of March 2016, the Ubuntu repositories contain only version 2 of the server, which is end-of-life."
That is not an appropriate response. Matthew pointed you to a Wiki page which tells you how to build your own package.
As for this dependency, where in the documentation was this libldap2-dev dependency mentioned?\
That is also not an appropriate response. Matthew pointed you to the Wiki page which contains exactly the documentation you're looking for. It is ridiculous to complain about the lack of documentation where you refuse to read the documentation you're given. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Fri, Oct 28, 2016 at 01:14:31PM +0000, Daniel Wruck wrote:
Please forgive my ignorance because that was the root cause of all of this. But I did read - every bit I could get my hands on. And I followed all the instructions, but I just missed something along the way.
I've reorganised the wiki page slightly. Hopefully it's clearer now. Matthew -- Matthew Newton, Ph.D. <mcn4@leicester.ac.uk> Systems Specialist, Infrastructure Services, I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom For IT help contact helpdesk extn. 2253, <ithelp@le.ac.uk>
Going back and reading this page all again, I know where I lost my way. Not knowing which method was better, I built from source. "Note that you will need to ensure all required dependencies are installed first (such as libssl-dev)" has a lot more meaning now. I might even have more missing dependencies, but since building from source is done.... 1) is it too late to go back and build packages? my built from source version is working enough to allow me to successfully radtest against it. 2) is there anything more I can read about what dependencies each module requires
On Fri, Oct 28, 2016 at 01:43:47PM +0000, Daniel Wruck wrote:
Going back and reading this page all again, I know where I lost my way. Not knowing which method was better, I built from source. "Note that you will need to ensure all required dependencies are installed first (such as libssl-dev)" has a lot more meaning now. I might even have more missing dependencies, but since building from source is done....
Glad that's more useful. Packages is cleaner for your system. So you can install them, and then when you want to remove FreeRADIUS, or upgrade, it's easy to remove them and install new ones. The packaging system tidies up old files for you. Building from source and directly installing it's a bit harder to tidily remove all files from the system when you want to clean up, and you have to manually configure boot scripts etc. And the packaging stuff automatically makes sure all needed dependencies are pulled in at build time, and installed at install time. So you don't need to worry about it. As well as making sure init scripts / systemd unit files are in place so FreeRADIUS correctly starts at boot.
1) is it too late to go back and build packages? my built from source version is working enough to allow me to successfully radtest against it.
Up to you. You can leave as-is, or remove what you've installed and build and install the packages. Or even you can build packages first and make sure that works. Then if you get stuck just use what you've got, otherwise remove it* and install the packages. * so you don't get confused later on with config files and libraries installed in two different places on your system.
2) is there anything more I can read about what dependencies each module requires
Read the output of ./configure, it will explain when something isn't being built because the required dependencies are not there. The Debian/Ubuntu ones are also listed in debian/control. Matthew -- Matthew Newton, Ph.D. <mcn4@leicester.ac.uk> Systems Specialist, Infrastructure Services, I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom For IT help contact helpdesk extn. 2253, <ithelp@le.ac.uk>
./configure | grep WARN Look out for anything that mentions features you want to use. Complex? Maybe. You certainly need a developer hat on. End users should really be served by distro maintainers, Sally in the main they are not. Even the conservative RH people are using 3.0.x - not sure when Debian went bad :/ alan
Alan Buxey wrote:
End users should really be served by distro maintainers, Sally in the main they are not.
FWIW: Upcoming openSUSE 42.2 will ship freeradius release 3.0.12: https://build.opensuse.org/package/show/openSUSE:Leap:42.2/freeradius-server Ciao, Michael.
Complex? Maybe. You certainly need a developer hat on. End users should really be served by distro maintainers, Sally in the main they are not. Even the conservative RH people are using 3.0.x - not sure when Debian went bad :/
Might be that the package maintainers are no longer around? 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 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.
On Fri, Oct 28, 2016 at 12:35:35PM +0000, Daniel Wruck wrote:
I would have loved to had a package to install. But no joy for Ubuntu users.
"As of March 2016, the Ubuntu repositories contain only version 2 of the server, which is end-of-life."
The wiki page gives you the exact instructions to build your own packages if you read past the first paragraph. For Debian read Ubuntu, and vice-versa. They are essentially the same as far as this is concerned.
As for this dependency, where in the documentation was this libldap2-dev dependency mentioned?
When you follow the instructions on the wiki page to build the packages it will pull in the dependencies for you. So this should work: git clone https://github.com/FreeRADIUS/freeradius-server.git cd freeradius-server git checkout release_3_0_12 git cherry-pick e5cce05 sudo apt-get install devscripts fakeroot debian/rules clean sudo mk-build-deps -ir debian/control dpkg-buildpackage -rfakeroot -b -uc I'll see if I can tidy the paragraph about package repositories. It looks like it's just confusing things. Matthew
-----Original Message----- From: Freeradius-Users [mailto:freeradius-users-bounces+daniel.wruck=fbchammond.com@lists.freeradius.org] On Behalf Of Matthew Newton Sent: Friday, October 28, 2016 5:27 AM To: FreeRadius users mailing list <freeradius-users@lists.freeradius.org> Subject: Re: ldap shared object
On Fri, Oct 28, 2016 at 02:29:08AM +0000, Daniel Wruck wrote:
Having a hard time setting up my new freeRADIUS 3.0.12 on Ubuntu 16.04. I am trying to turn on ldap; I altered the file in sites-available, and hand created a symlink to it from sites-enabled. But now I am getting an error in radiusd -X of
/usr/local/etc/raddb/mods-enabled/ldap[8]: Failed to link to module 'rlm_ldap': /usr/local/lib/rlm_ldap.so: cannot open shared object file: No such file or directory
As already mentioned,
# apt-get install libldap2-dev
before building.
But if you follow the instructions to build packages for your system, this should all be sorted for you (and you'll have packages which is cleaner on your system as well).
See http://wiki.freeradius.org/building/Debian%20and%20Ubuntu
"Getting the source" and "Building Packages"
Matthew
-- Matthew Newton, Ph.D. <mcn4@leicester.ac.uk> Systems Specialist, Infrastructure Services, I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom For IT help contact helpdesk extn. 2253, <ithelp@le.ac.uk>
participants (7)
-
Alan Buxey -
Alan DeKok -
Brian Julin -
Daniel Wruck -
Matthew Newton -
Michael Ströder -
Stefan Paetow