Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #21  
Old 6th November 2009, 07:05
awan awan is offline
Junior Member
 
Join Date: Sep 2007
Posts: 23
Thanks: 0
Thanked 1 Time in 1 Post
Default SSL n stuff

GHZ

vi /etc/freeradius/radiusd.conf & comment the following line.

$INCLUDE eap.conf

Note: Make sure u turn the corresponding ssl requiring authentication methods OFF in /etc/freeradius/sites-enabled/default

btw this tutotial although centos 5 centric but it still explains the non-ssl non-mysql testing on ur freeradius server as well.

http://www.howtoforge.com/authentica...ith-daloradius

furthermore this link illustrates using the same with ubuntu/debian distro.

http://www.howtoforge.com/setting-up...ith-daloradius


And yeah do check the privileges on the certificates/folder (it should belong to freeradius user (check out /etc/password for that). I think it should fix the ssl error thingy. Cheers

---
Ozzy
Reply With Quote
Sponsored Links
  #22  
Old 6th November 2009, 07:37
GHz GHz is offline
Member
 
Join Date: Jul 2009
Location: The Netherlands
Posts: 32
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Thanks awan for your quick reply. I will try it this afternoon and I'll let you know if it worked.
Reply With Quote
  #23  
Old 6th November 2009, 12:48
GHz GHz is offline
Member
 
Join Date: Jul 2009
Location: The Netherlands
Posts: 32
Thanks: 2
Thanked 0 Times in 0 Posts
Default

It works! Now going to test it . I'll make a howto if it is really working

Edit:

Hmm, not completely, I get DB errors about tables which don't exist

Last edited by GHz; 6th November 2009 at 13:58.
Reply With Quote
  #24  
Old 6th November 2009, 16:17
GHz GHz is offline
Member
 
Join Date: Jul 2009
Location: The Netherlands
Posts: 32
Thanks: 2
Thanked 0 Times in 0 Posts
Default

I just imported the daloradius and freeradius SQL file to see if that made any difference, but the problem is still there. It still tells me that some tables do not exist. CAn anyone help me with this? Thanks!

Quote:
Database error
Error Message: DB Error: no such table
Debug info: SELECT distinct(radcheck.username),radcheck.value, radcheck.id,usergroup.groupname as groupname, radcheck.attribute, userinfo.firstname, userinfo.lastname FROM radcheck LEFT JOIN userinfo ON radcheck.username=userinfo.username LEFT JOIN usergroup ON radcheck.username=usergroup.username WHERE (Attribute LIKE '%-Password') OR (Attribute='Auth-Type') GROUP BY UserName [nativecode=1146 ** Table 'radiusdb.usergroup' doesn't exist]

Fatal error: Call to undefined method DB_Error::numRows() in /var/www/daloradius-0.9-8/mng-list-all.php on line 102

Last edited by GHz; 6th November 2009 at 17:41.
Reply With Quote
  #25  
Old 11th November 2009, 10:54
awan awan is offline
Junior Member
 
Join Date: Sep 2007
Posts: 23
Thanks: 0
Thanked 1 Time in 1 Post
Default schema issues !

hey there,
I had uploaded a changed/updated version of schema on that howto (within the howto). Use that.

Btw also make sure u have set the right privileges on the DB/schema.
Cheers
--
Ozzy

Note: I wrote this howto with the version of the softwares used mentioned in the howto. Other than that I do not guarantee it would work. Letme know though.
Reply With Quote
  #26  
Old 19th November 2009, 21:18
norrafi norrafi is offline
Junior Member
 
Join Date: Aug 2007
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via Skype™ to norrafi
Default

I still get no response server. Do you think NAS-IP-Add should be 127.0.1.1??

Quote:
#freeradius -X
Listening on authentication address * port 1812
Listening on accounting address * port 1813
Listening on proxy address * port 1814
Ready to process requests.

#radtest sqltest testpwd localhost 1812 testing123
Sending Access-Request of id 37 to ::1 port 1812
User-Name = "sqltest"
User-Password = "testpwd"
NAS-IP-Address = 127.0.1.1
NAS-Port = 1813
Sending Access-Request of id 37 to ::1 port 1812
User-Name = "sqltest"
User-Password = "testpwd"
NAS-IP-Address = 127.0.1.1
NAS-Port = 1813
radclient: no response from server for ID 37 socket 3
root@norrafi-desktop:/etc/freeradius#
__________________
hello world!

Last edited by norrafi; 19th November 2009 at 21:43.
Reply With Quote
  #27  
Old 20th November 2009, 04:45
norrafi norrafi is offline
Junior Member
 
Join Date: Aug 2007
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via Skype™ to norrafi
Default

Quote:
Originally Posted by norrafi View Post
I still get no response server. Do you think NAS-IP-Add should be 127.0.1.1??
But when I change localhost to 127.0.0.1; I got;

Quote:
Listening on authentication address * port 1812
Listening on accounting address * port 1813
Ready to process requests.
rad_recv: Access-Request packet from host 127.0.0.1 port 41972, id=112, length=59
User-Name = "sqltest"
User-Password = "testpwd"
NAS-IP-Address = 127.0.1.1
NAS-Port = 1812
+- entering group authorize {...}
Segmentation fault
root@norrafi-desktop:/home/norrafi#
__________________
hello world!
Reply With Quote
  #28  
Old 20th November 2009, 06:40
awan awan is offline
Junior Member
 
Join Date: Sep 2007
Posts: 23
Thanks: 0
Thanked 1 Time in 1 Post
Default newbie blunder ?

hmm. Judging by ur TCP/IP/subneting concepts I am not sure you are cut out for this stuff. U should know better 127.x.x.x is a special subnet.

Anyway whatever is you IP address (not the loop back address) set the IP for that NAS device from within that subnet & try again.
cheers
--
Ozzy
Reply With Quote
The Following User Says Thank You to awan For This Useful Post:
norrafi (20th November 2009)
  #29  
Old 21st November 2009, 10:38
norrafi norrafi is offline
Junior Member
 
Join Date: Aug 2007
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via Skype™ to norrafi
Default

Success on MYSQL-Freeradius part,
but 2 more problem;
1- dolarius 0.9.8 get error after login(access from localhost);

Quote:
Fatal error: Call to a member function escapeSimple() on a non-object in /var/www/daloradius/dologin.php on line 56
2- the login page cannot appear from other client/ip;

Quote:
Forbidden
You dont have permission to access /myradius on this server
I already follow this;
chown www-data:www-data /var/www/daloradius -R
__________________
hello world!
Reply With Quote
  #30  
Old 21st November 2009, 13:12
norrafi norrafi is offline
Junior Member
 
Join Date: Aug 2007
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via Skype™ to norrafi
 
Default

Success for no2, I make changes on apache2.conf. add below line;

Quote:
...
allow from 127.0.0.1
allow from all
__________________
hello world!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Freeradius configure issue SaFi2266 HOWTO-Related Questions 5 24th July 2011 07:32
Configuring ISPConfig to work with Daloradius 4walters Installation/Configuration 2 29th April 2009 13:46
Setting Up A FreeRadius Based AAA Server With MySQL & Management With Daloradius herbie HOWTO-Related Questions 3 15th September 2008 05:37


All times are GMT +2. The time now is 02:24.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.