Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 4th July 2012, 11:41
execution execution is offline
Junior Member
 
Join Date: Jul 2012
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Smile how to fix radius not working On centOS 6.2

Hi, I'm student I need to start packetfence is working.
I config packetfence by administrator guide.

when I start packetfence radius is not working

Quote:
[root@localhost]# service radiusd status
radiusd is stopped
I check my radius log in directory (/var/log/radius/radius.log) is show

Quote:
Tue Jul 3 10:39:23 2012 : Error: Failed to load clients from SQL.
Tue Jul 3 10:39:23 2012 : Info: rlm_sql (sql): Closing sqlsocket 4
Tue Jul 3 10:39:23 2012 : Info: rlm_sql (sql): Closing sqlsocket 3
Tue Jul 3 10:39:23 2012 : Info: rlm_sql (sql): Closing sqlsocket 2
Tue Jul 3 10:39:23 2012 : Info: rlm_sql (sql): Closing sqlsocket 1
Tue Jul 3 10:39:23 2012 : Info: rlm_sql (sql): Closing sqlsocket 0
Tue Jul 3 10:39:23 2012 : Error: /etc/raddb/sql.conf[1]: Instantiation failed for module "sql"
Tue Jul 3 10:39:23 2012 : Error: /etc/raddb/sites-enabled/packetfence[32]: Failed to load module "sql".
Tue Jul 3 10:39:23 2012 : Error: /etc/raddb/sites-enabled/packetfence[29]: Errors parsing accounting section.
Tue Jul 3 10:39:23 2012 : Error: Failed to load virtual server packetfence
And rmp -qa | grep freeradius is show

Quote:
freeradius-perl-2.1.11-1.el6.i386
freeradius-2.1.11-1.el6.i386
freeradius-utils-2.1.11-1.el6.i386
packetfence-freeradius2-3.4.1-1.el6.noarch
freeradius-mysql-2.1.11-1.el6.i386
Thanks for any help.

I'm apologist if my english is so bad.
Reply With Quote
Sponsored Links
  #2  
Old 4th July 2012, 12:15
execution execution is offline
Junior Member
 
Join Date: Jul 2012
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Wed Jul 4 07:52:32 2012 : Info: rlm_sql_mysql: Starting connect to MySQL server for #4
Wed Jul 4 07:52:32 2012 : Info: rlm_sql (sql): Connected new DB handle, #4
Wed Jul 4 07:52:32 2012 : Error: Failed to add duplicate client 127.0.0.1
Wed Jul 4 07:52:32 2012 : Error: Failed to load clients from SQL.
Wed Jul 4 07:52:32 2012 : Info: rlm_sql (sql): Closing sqlsocket 4
Wed Jul 4 07:52:32 2012 : Info: rlm_sql (sql): Closing sqlsocket 3
Wed Jul 4 07:52:32 2012 : Info: rlm_sql (sql): Closing sqlsocket 2
Wed Jul 4 07:52:32 2012 : Info: rlm_sql (sql): Closing sqlsocket 1
Wed Jul 4 07:52:32 2012 : Info: rlm_sql (sql): Closing sqlsocket 0
Wed Jul 4 07:52:32 2012 : Error: /etc/raddb/sql.conf[1]: Instantiation failed for module "sql"
Wed Jul 4 07:52:32 2012 : Error: /etc/raddb/sites-enabled/packetfence[32]: Failed to load module "sql".
Wed Jul 4 07:52:32 2012 : Error: /etc/raddb/sites-enabled/packetfence[29]: Errors parsing accounting section.
Wed Jul 4 07:52:32 2012 : Error: Failed to load virtual server packetfence
Wed Jul 4 08:46:18 2012 : Info: Loaded virtual server <default>
Wed Jul 4 08:46:19 2012 : Info: Loaded virtual server packetfence-tunnel
Wed Jul 4 08:46:19 2012 : Info: Loaded virtual server inner-tunnel
Wed Jul 4 08:46:19 2012 : Info: Loaded virtual server soh-server
Wed Jul 4 08:46:19 2012 : Error: /etc/raddb/sites-enabled/packetfence[33]: Failed to load module "file".
Wed Jul 4 08:46:19 2012 : Error: /etc/raddb/sites-enabled/packetfence[29]: Errors parsing accounting section.
Wed Jul 4 08:46:19 2012 : Error: Failed to load virtual server packetfence


This is tail -20 radius.log
Reply With Quote
  #3  
Old 5th July 2012, 19:51
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

I'm no Radius expert, but it seems as if the MySQL module is not loaded. Please double-check this in your configuration.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following 2 Users Say Thank You to falko For This Useful Post:
creodacious (6th July 2012), execution (10th July 2012)
  #4  
Old 10th July 2012, 17:43
execution execution is offline
Junior Member
 
Join Date: Jul 2012
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by falko View Post
I'm no Radius expert, but it seems as if the MySQL module is not loaded. Please double-check this in your configuration.
thanks for reply but i can fix it.

this problem caused radius not fix ip in radius.conf


but now i have new problem. When i login in registration page

Here is packetfence.log info

Jul 09 13:25:29 pfdhcplistener(3736) INFO: DHCPACK from 192.168.2.1 (00:1c:f0:d1:a4:38) to host bc:ae:c5:2f:88:6e (192.168.2.20) for 20 seconds (main:arse_dhcp_ack)
Jul 09 13:25:39 pfdhcplistener(3736) INFO: bc:ae:c5:2f:88:6e requested an IP. DHCP Fingerprint: OS::107 (Microsoft Windows Vista/7 or Server 2008). Modified node with last_dhcp = 2012-07-09 13:25:39,computername = execution-PC,dhcp_fingerprint = 1,15,3,6,44,46,47,31,33,121,249,43 (main::listen_dhcp)
Jul 09 13:25:39 pfdhcplistener(3736) INFO: DHCPACK from 192.168.2.1 (00:1c:f0:d1:a4:38) to host bc:ae:c5:2f:88:6e (192.168.2.20) for 20 seconds (main:arse_dhcp_ack)
Jul 09 13:25:44 register.cgi(0) INFO: 192.168.2.20 - bc:ae:c5:2f:88:6e on registration page (ModPerl::ROOT::ModPerl::PerlRun::usr_local_pf_htm l_captive_2dportal_register_2ecgi::handler)
Jul 09 13:25:45 register.cgi(0) INFO: performing node registration MAC:bc:ae:c5:2f:88:6e pid: execution (pf::web::_sanitize_and_register)
Jul 09 13:25:46 register.cgi(0) INFO: re-evaluating access for node bc:ae:c5:2f:88:6e (manage_register called) (pf::enforcement::reevaluate_access)
Jul 09 13:25:46 register.cgi(0) WARN: Can't re-evaluate access for mac bc:ae:c5:2f:88:6e because no open locationlog entry was found (pf::enforcement::reevaluate_access)
Jul 09 13:25:46 register.cgi(0) INFO: 192.168.2.20 - bc:ae:c5:2f:88:6e on registration page (ModPerl::ROOT::ModPerl::PerlRun::usr_local_pf_htm l_captive_2dportal_register_2ecgi::handler)

what is "because no open locationlog entry was found (pf::enforcement::reevaluate_access)" ? and How to fix it

Thanks for any help.

Last edited by execution; 10th July 2012 at 17:49.
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
Centos 6.2 kernel jpucik Installation/Configuration 10 15th June 2012 15:02
CentOS 6.2 & kvm on hetzner imonkey HOWTO-Related Questions 3 30th May 2012 17:26
VMWARE - Centos 6.2 - Problem with hdds rajcz Technical 0 16th April 2012 15:58
CentOs 5.3 - PHP not working jlaughy Installation/Configuration 3 22nd May 2009 13:02
dk-filter / sendmail / centos ALMOST working but broken pipe to socket? Please help kinesis Installation/Configuration 4 6th April 2009 21:54


All times are GMT +2. The time now is 22:05.


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