On 11 Oct 2018, at 11:37, Sebastian Hagedorn <Hagedorn@uni-koeln.de> wrote:
--On 11. Oktober 2018 um 11:22:28 +0300 Palvelin Postmaster via Freeradius-Users <freeradius-users@lists.freeradius.org> wrote:
has anyone successfully installed FreeRADIUS 3.x and it’s dependencies from source on macOS Mojave (or previous versions)? More specifically, I’m primarily interested in using FR for authenticating against Open Directory.
I’d prefer not to use Homebrew to install because I already use Macports (unfortunately there isn’t a 3.x build available yet).
The wiki instructions: https://wiki.freeradius.org/building/macOS are very straight forward but don't include some of the configure flags ('--with-talloc-lib-dir --with-talloc-include-dir= --with-openssl-lib-dir= --with-openssl-include-dir’) included in the Homebrew formula: https://github.com/Homebrew/homebrew-core/blob/master/Formula/freeradius- server.rb
Also, Apple's Makefile of FreeRADIUS 2.2 included in the Server App has a few other configure flags ('--disable-static --enable-shared --enable-ltdl-install=yes --without-rlm_perl --without-rlm_sql_mysql') as well as some CC and LD flags which I’m thinking could still be relevant: https://opensource.apple.com/source/freeradius/freeradius-42/Makefile.aut o.html).
It would appear OD support is an ’experimental’ feature in FR 3.x so I believe '--with-experimental-modules’ is needed at the very least.
Apple has recently published this guide that also covers FR 3 with OD:
<https://developer.apple.com/support/macos-server/macOS-Server-Service-Migration-Guide.pdf>
I’m trying to follow these instructions with the exception of having openssl already installed via macports. I can successfully install talloc and freeradius like so: ./configure --prefix=/usr/local/talloc --without-gettext && make && sudo make install ./configure --prefix=/usr/local/freeradius --localstatedir=/var --with-talloc-lib-dir=/usr/local/talloc/lib/ --with-talloc-include-dir=/usr/local/talloc/include/ --with-openssl-lib-dir=/opt/local/lib --with-openssl-include-dir=/opt/local/include/ --enable-developer=yes && make && sudo make install However, executing radiusd -XC gives error: dyld: Library not loaded: /Users/admin/src/talloc-2.1.14/bin/default/libtalloc.inst.dylib Referenced from: /usr/local/freeradius/sbin/radiusd Looks like freeradius is linking against talloc library in the source code directory instead of /usr/local/talloc. I wonder why? -- Palvelin.fi Hostmaster postmaster@palvelin.fi