aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2012-01-08 17:28:15 -0800
committerChris Buechler <cmb@pfsense.org>2012-01-08 17:28:15 -0800
commit3adb6e69fe0d3736627dcf940787a026598e6a86 (patch)
tree8afd9875e8337ccb103a1effa413130927da5485 /config
parent5a6912c55876c1d1912ec8fe30cbbb85d380e239 (diff)
parent95befab42efdb6d23283d1790c1eb98e92dc57ab (diff)
downloadpfsense-packages-3adb6e69fe0d3736627dcf940787a026598e6a86.tar.gz
pfsense-packages-3adb6e69fe0d3736627dcf940787a026598e6a86.tar.bz2
pfsense-packages-3adb6e69fe0d3736627dcf940787a026598e6a86.zip
Merge pull request #191 from Nachtfalkeaw/master
freeradius2 updates pkg v1.4.7
Diffstat (limited to 'config')
-rw-r--r--config/freeradius2/freeradius.inc35
1 files changed, 34 insertions, 1 deletions
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';