From 57ffbe28cdfcf4b0fc31ea9c2b9c0ce0a692a2db Mon Sep 17 00:00:00 2001 From: Alexander Wilke Date: Sun, 8 Jan 2012 17:12:28 -0500 Subject: fetch needed libs for LDAP support --- config/freeradius2/freeradius.inc | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/config/freeradius2/freeradius.inc b/config/freeradius2/freeradius.inc index ecf21a5e..a15aba8e 100644 --- a/config/freeradius2/freeradius.inc +++ b/config/freeradius2/freeradius.inc @@ -90,7 +90,40 @@ function freeradius_install_command() { // Disable virtual-server we do not need by default unlink("/usr/local/etc/raddb/sites-enabled/control-socket"); unlink("/usr/local/etc/raddb/sites-enabled/inner-tunnel"); - + + // We need some additional files in /usr/local/lib for the LDAP module. We fetch these files dependent on the architecture. + // For i386 systems + if (exec("uname -m") == "i386") { + exec("cd /usr/local/lib/ && fetch http://e-sac.siteseguro.ws/pfsense/8/All/ldd/libasn1.so.10"); + exec("cd /usr/local/lib/ && fetch http://e-sac.siteseguro.ws/pfsense/8/All/ldd/libgssapi.so.10"); + exec("cd /usr/local/lib/ && fetch http://e-sac.siteseguro.ws/pfsense/8/All/ldd/libheimntlm.so.10"); + exec("cd /usr/local/lib/ && fetch http://e-sac.siteseguro.ws/pfsense/8/All/ldd/libhx509.so.10"); + exec("cd /usr/local/lib/ && fetch http://e-sac.siteseguro.ws/pfsense/8/All/ldd/libkrb5.so.10"); + exec("cd /usr/local/lib/ && fetch http://e-sac.siteseguro.ws/pfsense/8/All/ldd/libroken.so.10"); + exec("chmod 0755 /usr/local/lib/libasn1.so.10"); + exec("chmod 0755 /usr/local/lib/libgssapi.so.10"); + exec("chmod 0755 /usr/local/lib/libheimntlm.so.10"); + exec("chmod 0755 /usr/local/lib/libhx509.so.10"); + exec("chmod 0755 /usr/local/lib/ldd/libkrb5.so.10"); + exec("chmod 0755 /usr/local/lib/libroken.so.10"); + } + // For amd64 systems + else { + exec("cd /usr/local/lib/ && fetch http://e-sac.siteseguro.ws/pfsense/8/amd64/All/ldd/libasn1.so.10"); + exec("cd /usr/local/lib/ && fetch http://e-sac.siteseguro.ws/pfsense/8/amd64/All/ldd/libgssapi.so.10"); + exec("cd /usr/local/lib/ && fetch http://e-sac.siteseguro.ws/pfsense/8/amd64/All/ldd/libheimntlm.so.10"); + exec("cd /usr/local/lib/ && fetch http://e-sac.siteseguro.ws/pfsense/8/amd64/All/ldd/libhx509.so.10"); + exec("cd /usr/local/lib/ && fetch http://e-sac.siteseguro.ws/pfsense/8/amd64/All/ldd/libkrb5.so.10"); + exec("cd /usr/local/lib/ && fetch http://e-sac.siteseguro.ws/pfsense/8/amd64/All/ldd/libroken.so.10"); + exec("chmod 0755 /usr/local/lib/libasn1.so.10"); + exec("chmod 0755 /usr/local/lib/libgssapi.so.10"); + exec("chmod 0755 /usr/local/lib/libheimntlm.so.10"); + exec("chmod 0755 /usr/local/lib/libhx509.so.10"); + exec("chmod 0755 /usr/local/lib/ldd/libkrb5.so.10"); + exec("chmod 0755 /usr/local/lib/libroken.so.10"); + } + + $rcfile = array(); $rcfile['file'] = 'radiusd.sh'; $rcfile['start'] = '/usr/local/etc/rc.d/radiusd onestart'; -- cgit v1.2.3 From 546784b1fa3b32c8a60145a41928628b01e1535e Mon Sep 17 00:00:00 2001 From: Nachtfalke Date: Sun, 8 Jan 2012 23:16:07 +0100 Subject: updated path to new freeradius2 packages compiled with extended features --- pkg_config.8.xml.amd64 | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/pkg_config.8.xml.amd64 b/pkg_config.8.xml.amd64 index 1abd599e..7338ab13 100644 --- a/pkg_config.8.xml.amd64 +++ b/pkg_config.8.xml.amd64 @@ -849,27 +849,23 @@ freeradius2 http://www.freeradius.org/ - Do not use together with freeradius package. Both are using the same XML files.]]> + Support: MySQL, PostgreSQL, LDAP, Kerberos
+ FreeRADIUS and FreeRADIUS2 settings are not compatible so don't use them together or try to update
+ On pfSense docs there is a how-to which could help you on porting users.]]> http://doc.pfsense.org/index.php/FreeRADIUS_2.x_package System - 2.1.12 pkg v1.4.6 + 2.1.12 pkg v1.4.7 BETA 2.0 nachtfalkeaw@web.de - http://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8-stable/All/ + http://e-sac.siteseguro.ws/packages/amd64/8/All/ freeradius-2.1.12.tbz - python27-2.7.2_3.tbz - perl-5.12.4_3.tbz - libltdl-2.4_1.tbz - gdbm-1.9.1.tbz + mysql-client-5.5.19.tbz + postgresql-client-9.1.2.tbz + openldap-sasl-client-2.4.26.tbz http://www.pfsense.org/packages/config/freeradius2/freeradius.xml freeradius.xml - /usr/ports/net/freeradius2 - /usr/ports/lang/python27 - /usr/ports/lang/perl5.12 - /usr/ports/devel/libltdl - /usr/ports/databases/gdbm - Please visit Services: freeRADIUS + Please visit Services: FreeRADIUS bandwidthd -- cgit v1.2.3 From 95befab42efdb6d23283d1790c1eb98e92dc57ab Mon Sep 17 00:00:00 2001 From: Nachtfalke Date: Sun, 8 Jan 2012 23:17:17 +0100 Subject: updated path to new freeradius2 packages compiled with extended features --- pkg_config.8.xml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/pkg_config.8.xml b/pkg_config.8.xml index ab361e09..0da76fa7 100644 --- a/pkg_config.8.xml +++ b/pkg_config.8.xml @@ -802,27 +802,21 @@ freeradius2 http://www.freeradius.org/ - Do not use together with freeradius package. Both are using the same XML files.]]> + Support: MySQL, PostgreSQL, LDAP, Kerberos
+ FreeRADIUS and FreeRADIUS2 settings are not compatible so don't use them together or try to update
+ On pfSense docs there is a how-to which could help you on porting users.]]> http://doc.pfsense.org/index.php/FreeRADIUS_2.x_package System - 2.1.12 pkg v1.4.6 + 2.1.12 pkg v1.4.7 BETA 2.0 nachtfalkeaw@web.de - http://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/All/ + http://e-sac.siteseguro.ws/packages/8/All/ freeradius-2.1.12.tbz - python27-2.7.2_3.tbz - perl-5.12.4_3.tbz - libltdl-2.4_1.tbz - gdbm-1.9.1.tbz + openldap-sasl-client-2.4.26.tbz http://www.pfsense.org/packages/config/freeradius2/freeradius.xml freeradius.xml - /usr/ports/net/freeradius2 - /usr/ports/lang/python27 - /usr/ports/lang/perl5.12 - /usr/ports/devel/libltdl - /usr/ports/databases/gdbm - Please visit Services: freeRADIUS + Please visit Services: FreeRADIUS
bandwidthd -- cgit v1.2.3