how to fix radius not working On centOS 6.2

Discussion in 'Server Operation' started by execution, Jul 4, 2012.

  1. execution

    execution New Member

    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

    I check my radius log in directory (/var/log/radius/radius.log) is show

    And rmp -qa | grep freeradius is show

    Thanks for any help.

    I'm apologist if my english is so bad.
     
  2. execution

    execution New Member

    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
     
  3. falko

    falko Super Moderator Howtoforge Staff

    I'm no Radius expert, but it seems as if the MySQL module is not loaded. Please double-check this in your configuration.
     
  4. execution

    execution New Member

    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::parse_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::parse_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_html_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_html_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: Jul 10, 2012

Share This Page