Author Topic: HowTo: add radius module with mschap support to zentyal 4.0, 4.2, 5.0, 5.1  (Read 21854 times)

segelfreak

  • Zen Monk
  • **
  • Posts: 70
  • Karma: +4/-0
    • View Profile
Re: HowTo: add radius module with mschap support to zentyal 4.0, 4.1, 4.2
« Reply #45 on: October 04, 2016, 04:39:31 pm »
Code: [Select]
ls -la /var/lib/zentyal/conf/
total 144
drwxr-xr-x  9 ebox adm   4096 Okt  3 20:51 .
drwxr-xr-x 10 ebox ebox  4096 Okt  4 01:16 ..
drwx------  2 ebox adm   4096 Okt  2 22:14 backups
drwxr-xr-x  2 ebox ebox  4096 Feb 18  2016 dhcp
-rw-r--r--  1 ebox adm    371 Okt 21  2015 eboxlog.conf
-rw-r--r--  1 ebox adm     33 Feb  3  2016 ebox.passwd
-rw-------  1 ebox ebox     0 Feb 18  2016 ebox.sid
-rw-------  1 ebox ebox    32 Okt  2 20:53 fetchmail.passwd
-rw-------  1 ebox ebox    32 Okt  2 20:32 fetchmail.passwd~
-rw-r--r--  1 ebox ebox    11 Okt  3 20:51 locale
drwxrwxrwx  2 ebox ebox  4096 Feb 18  2016 logs
-rw-r--r--  1 ebox ebox  3857 Okt  3 20:51 nginx.conf
drwxr-xr-x  2 root root  4096 Mär  1  2016 openchange
-rw-r--r--  1 root root  9527 Feb  3  2016 openssl.cnf
-rw-------  1 ebox root 25726 Okt  3 20:47 redis.conf
-rw-------  1 ebox ebox     8 Feb 18  2016 redis.passwd
drwxr-xr-x  2 ebox ebox  4096 Feb 18  2016 remoteservices
-rw-rw-rw-  1 ebox ebox   146 Okt  3 20:50 samba-antivirus.conf
-r--------  1 ebox ebox   193 Okt  3 20:50 samba.keytab
-r--------  1 root root     8 Mär  3  2016 sa-mysql.passwd
-rw-------  1 ebox ebox     8 Feb 19  2016 sogo_db.passwd
drwx------  2 root root  4096 Okt  3 20:49 ssl
drwxr-xr-x  2 ebox adm   4096 Feb  3  2016 ssl-ca
-rw-r--r--  1 root root   353 Apr 25 12:08 zavsd-log.conf
-rw-------  1 ebox ebox    20 Okt  2 20:53 zentyal-mailfilter-zentyal.passwd
-rw-------  1 ebox ebox    20 Okt  2 20:53 zentyal-mail-zentyal.passwd
-r--------  1 root root     8 Feb 18  2016 zentyal-mysql.passwd
-rw-------  1 ebox ebox    20 Okt  2 20:53 zentyal-openchange-zentyal.passwd
-rw-------  1 ebox ebox    20 Okt  2 20:53 zentyal-radius-zentyal.passwd


julio

  • Guest
Re: HowTo: add radius module with mschap support to zentyal 4.0, 4.1, 4.2
« Reply #46 on: October 04, 2016, 04:46:27 pm »
try restore the zentyal-radius-zentyal user password:
Code: [Select]
sudo samba-tool user setpassword zentyal-radius-zentyal --newpassword=$(cat /var/lib/zentyal/conf/zentyal-radius-zentyal.passwd)
sudo service zentyal radius restart

segelfreak

  • Zen Monk
  • **
  • Posts: 70
  • Karma: +4/-0
    • View Profile
Re: HowTo: add radius module with mschap support to zentyal 4.0, 4.1, 4.2
« Reply #47 on: October 04, 2016, 06:14:15 pm »
You're my man, Julio! It worked!
Thank's so much, you've made more than 40 refugees happy. They can now use their WiFi AP again.
So easy after all, but when you're sitting in the middle of a forest, it's hard to see a single tree ;-)

l4n

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: HowTo: add radius module with mschap support to zentyal 4.0, 4.1, 4.2
« Reply #48 on: March 04, 2017, 12:02:27 pm »
Hello
I ran into some trouble to make it work with Zenyal 5.0, but I finally did it. So I am sharing my steps with you guys.
Code: [Select]
mkdir ~/radius
cd ~/radius
rm -rf zentyal-radius-4.2
wget http://archive.zentyal.org/zentyal/pool/main/z/zentyal-radius/zentyal-radius_3.5.1.tar.gz -O zentyal-radius_3.5.1.tar.gz
tar -xf zentyal-radius_3.5.1.tar.gz
mv zentyal-radius-3.5.1 zentyal-radius-5.0
wget 'https://drive.google.com/uc?export=download&id=0B4LpBN3axE3nUHZROVJGY3hPeVk' -O zentyal-radius-5.0.patch
patch -t -p1 -i zentyal-radius-5.0.patch
cd zentyal-radius-5.0
dpkg-buildpackage -rfakeroot -b -tc
cd ..
apt install ./zentyal-radius_5.0_all.deb -y
sudo apt-get install -f -y

Dont forget to manually add firewall rules for the radius service (on port UDP 1812) !
julio, feel free to edit this into your first post if you want.

luis.apodaca

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: HowTo: add radius module with mschap support to zentyal 4.0, 4.2, 5.0
« Reply #49 on: March 21, 2017, 10:20:30 pm »
Hello everyone

I have been trying to install the radius module all week but I have not been lucky, the installation of my virtual machine is new, when renewing the server I had to format and deal with a new installation, previously I followed these instructions and I did not have problems but On this occasion I have not been able to install, since the first command tells me that the package build-essential is lost and will not allow me to continue.

any ideas ? Thanks for any help.

julio

  • Guest
Re: HowTo: add radius module with mschap support to zentyal 4.0, 4.2, 5.0
« Reply #50 on: March 22, 2017, 12:33:11 pm »
Hello everyone

I have been trying to install the radius module all week but I have not been lucky, the installation of my virtual machine is new, when renewing the server I had to format and deal with a new installation, previously I followed these instructions and I did not have problems but On this occasion I have not been able to install, since the first command tells me that the package build-essential is lost and will not allow me to continue.

any ideas ? Thanks for any help.

Try with the original instructions, step by step...
https://forum.zentyal.org/index.php/topic,25541.0.html

luis.apodaca

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: HowTo: add radius module with mschap support to zentyal 4.0, 4.2, 5.0
« Reply #51 on: March 22, 2017, 03:11:41 pm »
sorry, when i said this instructions i meant the originally list, but also yesterday i tried the last one, and is sending me the same error !!

julio

  • Guest
Re: HowTo: add radius module with mschap support to zentyal 4.0, 4.2, 5.0
« Reply #52 on: March 22, 2017, 03:54:49 pm »
sorry, when i said this instructions i meant the originally list, but also yesterday i tried the last one, and is sending me the same error !!

please post the error messages or give me more detail about the error!

luis.apodaca

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: HowTo: add radius module with mschap support to zentyal 4.0, 4.2, 5.0
« Reply #53 on: March 22, 2017, 04:13:06 pm »

Here is a picture of the error message

julio

  • Guest
Re: HowTo: add radius module with mschap support to zentyal 4.0, 4.2, 5.0
« Reply #54 on: March 22, 2017, 11:38:32 pm »
Please enable the main repository in the /etc/apt/sources.list file.

It looks like:
deb http://de.archive.ubuntu.com/ubuntu trusty main restricted universe multiverse
#deb-src http://de.archive.ubuntu.com/ubuntu trusty main restricted universe multiverse

deb http://de.archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse
#deb-src http://de.archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse

deb http://de.archive.ubuntu.com/ubuntu trusty-security main restricted universe multiverse
#deb-src http://de.archive.ubuntu.com/ubuntu trusty-security main restricted universe multiverse

deb http://de.archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse
#deb-src http://de.archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu trusty main

After that:
sudo apt-get update
sudo apt-get install zbuildtools build-essential fakeroot dpkg-dev -y

luis.apodaca

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: HowTo: add radius module with mschap support to zentyal 4.0, 4.2, 5.0
« Reply #55 on: March 22, 2017, 11:54:12 pm »
Thanks, I'll try what you say, but just to be sure;
Are you asking me to run these commands on the console before the original instruction list?
....
.
.
.
.
sorry but no, it doesnt work !!
« Last Edit: March 23, 2017, 12:56:53 am by luis.apodaca »

julio

  • Guest
Re: HowTo: add radius module with mschap support to zentyal 4.0, 4.2, 5.0
« Reply #56 on: March 23, 2017, 08:27:01 am »
Open the /etc/apt/sources.list with text editor and enable the main repo... Like my previous post!

luis.apodaca

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
thank so much Julio, it works really nice, now I´m gonna set it up everything  to put the wifi client´s to work, if something goes wrong i will let you know

thank´s again and regards.


« Last Edit: April 03, 2017, 03:41:20 pm by luis.apodaca »

half_life

  • Bug Hunter
  • Zen Hero
  • *****
  • Posts: 862
  • Karma: +57/-0
    • View Profile
Re: HowTo: add radius module with mschap support to zentyal 4.0, 4.2, 5.0
« Reply #58 on: April 08, 2017, 08:06:04 pm »
Thanks Julio,

The only issue I had was failed dependencies when trying to install the .deb file.  sudo apt-get install -f fixed it.

julio

  • Guest
Re: HowTo: add radius module with mschap support to zentyal 4.0, 4.2, 5.0
« Reply #59 on: April 09, 2017, 08:26:52 pm »
Thanks Julio,

The only issue I had was failed dependencies when trying to install the .deb file.  sudo apt-get install -f fixed it.

Modified, thank you for your feedback!