Author Topic: Zentyal 3.0 Freeradius not starting after dist-upgrade  (Read 5205 times)

plierop

  • Zen Apprentice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Zentyal 3.0 Freeradius not starting after dist-upgrade
« on: June 03, 2013, 11:36:57 am »
We gebruikte de freeradius binnen de laatste Zentyal 2 versie voor het authentiseren van TMobile dongel gebruikers binnen onze organisatie, we kunnen ze met deze oplossing voorzien van een vast IP op hun dongel. Omgeving werkte perfect maar op een gegeven moment ging er iets fout in de virtuele omgeving waardoor de Zentyalserver zijn disk verloor. Ik moest terug vanuit een backup welke ik nog had maar e.e.a binnen Freeradius werkte niet meer omdat de backup van voor de laatste wijzigingen was. Er was bv ondertussen wat veranderd in de netwerkconfig tussen ons en TMobile en die zaten niet in de backup verwerkt, inmiddels is de connectie met TMobile weer in de lucht maar Freeradius wil dus niet opstarten.
Omdat e.e.a toch niet werkte dacht ik dat het misschien wel een idee was om de gehele omgeving maar direct te voorzien van de nieuwste updates en dus ook maar gemigreerd naar de 3.0 versie van Zentyal. Upgrade ging perfect maar Radius start niet meer op (Error restarting service RADIUS. See /var/log/zentyal/zentyal.log for more information.).

Ik heb het idee dat er rechten veranderd zijn of misschien routes naar files/bestanden, iemand een idee ? Omgeving is dus volledig geupdate naar versie 3.0 met alle updates.

Onderstaand wat logmeldingen:

/var/log/freeradius/radius.log
Fri May 31 13:52:45 2013 : Error: /etc/freeradius/sites-enabled/default[378]: Failed to load module "sqlippool".
Fri May 31 13:52:45 2013 : Error: /etc/freeradius/sites-enabled/default[355]: Errors parsing accounting section.
Fri May 31 13:52:45 2013 : Error: Failed to load virtual server <default>
Fri May 31 14:22:48 2013 : Info: Loaded virtual server inner-tunnel
Fri May 31 14:22:48 2013 : Error: /etc/freeradius/sites-enabled/default[378]: Failed to load module "sqlippool".
Fri May 31 14:22:48 2013 : Error: /etc/freeradius/sites-enabled/default[355]: Errors parsing accounting section.
Fri May 31 14:22:48 2013 : Error: Failed to load virtual server <default>
Fri May 31 14:30:24 2013 : Info: Loaded virtual server inner-tunnel
Fri May 31 14:30:24 2013 : Error: /etc/freeradius/sites-enabled/default[378]: Failed to load module "sqlippool".
Fri May 31 14:30:24 2013 : Error: /etc/freeradius/sites-enabled/default[355]: Errors parsing accounting section.
Fri May 31 14:30:24 2013 : Error: Failed to load virtual server <default>
Fri May 31 14:30:26 2013 : Info: Loaded virtual server inner-tunnel
Fri May 31 14:30:26 2013 : Error: /etc/freeradius/sites-enabled/default[378]: Failed to load module "sqlippool".
Fri May 31 14:30:26 2013 : Error: /etc/freeradius/sites-enabled/default[355]: Errors parsing accounting section.
Fri May 31 14:30:26 2013 : Error: Failed to load virtual server <default>
Fri May 31 14:33:23 2013 : Info: Loaded virtual server inner-tunnel
Fri May 31 14:33:23 2013 : Error: /etc/freeradius/sites-enabled/default[378]: Failed to load module "sqlippool".
Fri May 31 14:33:23 2013 : Error: /etc/freeradius/sites-enabled/default[355]: Errors parsing accounting section.
Fri May 31 14:33:23 2013 : Error: Failed to load virtual server <default>
Fri May 31 14:33:30 2013 : Info: Loaded virtual server inner-tunnel
Fri May 31 14:33:30 2013 : Error: /etc/freeradius/sites-enabled/default[378]: Failed to load module "sqlippool".
Fri May 31 14:33:30 2013 : Error: /etc/freeradius/sites-enabled/default[355]: Errors parsing accounting section.
Fri May 31 14:33:30 2013 : Error: Failed to load virtual server <default>
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

sudo freeradius -X
Module: Linked to module rlm_expiration
Module: Instantiating module "expiration" from file /etc/freeradius/modules/expiration
  expiration {
        reply-message = "Password Has Expired  "
  }
Module: Linked to module rlm_logintime
Module: Instantiating module "logintime" from file /etc/freeradius/modules/logintime
  logintime {
        reply-message = "You are calling outside your allowed timespan  "
        minimum-timeout = 60
  }
}
radiusd: #### Loading Virtual Servers ####
server inner-tunnel { # from file /etc/freeradius/sites-enabled/inner-tunnel
modules {
Module: Checking authenticate {...} for more modules to load
Module: Linked to module rlm_pap
Module: Instantiating module "pap" from file /etc/freeradius/modules/pap
  pap {
        encryption_scheme = "auto"
        auto_header = no
  }
Module: Linked to module rlm_chap
Module: Instantiating module "chap" from file /etc/freeradius/modules/chap
Module: Linked to module rlm_mschap
Module: Instantiating module "mschap" from file /etc/freeradius/modules/mschap
  mschap {
        use_mppe = yes
        require_encryption = no
        require_strong = no
        with_ntdomain_hack = no
  }
Module: Linked to module rlm_ldap
Module: Instantiating module "ldap" from file /etc/freeradius/modules/ldap
  ldap {
        server = "ldapi://%2fvar%2frun%2fslapd%2fldapi"
        port = 389
        password = ""
        identity = "cn=zentyal,dc=,dc=,dc=com"
        net_timeout = 1
        timeout = 4
        timelimit = 3
        tls_mode = no
        start_tls = no
        tls_require_cert = "allow"
   tls {
        start_tls = no
        require_cert = "allow"
   }
        basedn = "dc=,dc=,dc=com"
        filter = "(uid=%{Stripped-User-Name:-%{User-Name}})"
        base_filter = "(objectclass=radiusprofile)"
        auto_header = no
        access_attr_used_for_allow = yes
        groupname_attribute = "cn"
        groupmembership_filter = "(&(objectClass=posixGroup)(member=%{Stripped-User-Name:-%{User-Name}}))"
        groupmembership_attribute = "memberOf"
        dictionary_mapping = "/etc/freeradius/ldap.attrmap"
        ldap_debug = 0
        ldap_connections_number = 5
        compare_check_items = no
        do_xlat = yes
        edir_account_policy_check = no
        set_auth_type = yes
  }
rlm_ldap: Registering ldap_groupcmp for Ldap-Group
rlm_ldap: Registering ldap_xlat with xlat_name ldap
rlm_ldap: reading ldap<->radius mappings from file /etc/freeradius/ldap.attrmap
rlm_ldap: LDAP radiusCheckItem mapped to RADIUS $GENERIC$
rlm_ldap: LDAP radiusReplyItem mapped to RADIUS $GENERIC$
rlm_ldap: LDAP radiusAuthType mapped to RADIUS Auth-Type
rlm_ldap: LDAP radiusSimultaneousUse mapped to RADIUS Simultaneous-Use
rlm_ldap: LDAP radiusCalledStationId mapped to RADIUS Called-Station-Id
rlm_ldap: LDAP radiusCallingStationId mapped to RADIUS Calling-Station-Id
rlm_ldap: LDAP lmPassword mapped to RADIUS LM-Password
rlm_ldap: LDAP ntPassword mapped to RADIUS NT-Password
rlm_ldap: LDAP sambaLmPassword mapped to RADIUS LM-Password
rlm_ldap: LDAP sambaNtPassword mapped to RADIUS NT-Password
rlm_ldap: LDAP dBCSPwd mapped to RADIUS LM-Password
rlm_ldap: LDAP userPassword mapped to RADIUS Password-With-Header
rlm_ldap: LDAP acctFlags mapped to RADIUS SMB-Account-CTRL-TEXT
rlm_ldap: LDAP radiusExpiration mapped to RADIUS Expiration
rlm_ldap: LDAP radiusNASIpAddress mapped to RADIUS NAS-IP-Address
rlm_ldap: LDAP radiusServiceType mapped to RADIUS Service-Type
rlm_ldap: LDAP radiusFramedProtocol mapped to RADIUS Framed-Protocol
rlm_ldap: LDAP radiusFramedIPAddress mapped to RADIUS Framed-IP-Address
rlm_ldap: LDAP radiusFramedIPNetmask mapped to RADIUS Framed-IP-Netmask
rlm_ldap: LDAP radiusFramedRoute mapped to RADIUS Framed-Route
rlm_ldap: LDAP radiusFramedRouting mapped to RADIUS Framed-Routing
rlm_ldap: LDAP radiusFilterId mapped to RADIUS Filter-Id
rlm_ldap: LDAP radiusFramedMTU mapped to RADIUS Framed-MTU
rlm_ldap: LDAP radiusFramedCompression mapped to RADIUS Framed-Compression
rlm_ldap: LDAP radiusLoginIPHost mapped to RADIUS Login-IP-Host
rlm_ldap: LDAP radiusLoginService mapped to RADIUS Login-Service
rlm_ldap: LDAP radiusLoginTCPPort mapped to RADIUS Login-TCP-Port
rlm_ldap: LDAP radiusCallbackNumber mapped to RADIUS Callback-Number
rlm_ldap: LDAP radiusCallbackId mapped to RADIUS Callback-Id
rlm_ldap: LDAP radiusFramedIPXNetwork mapped to RADIUS Framed-IPX-Network
rlm_ldap: LDAP radiusClass mapped to RADIUS Class
rlm_ldap: LDAP radiusSessionTimeout mapped to RADIUS Session-Timeout
rlm_ldap: LDAP radiusIdleTimeout mapped to RADIUS Idle-Timeout
rlm_ldap: LDAP radiusTerminationAction mapped to RADIUS Termination-Action
rlm_ldap: LDAP radiusLoginLATService mapped to RADIUS Login-LAT-Service
rlm_ldap: LDAP radiusLoginLATNode mapped to RADIUS Login-LAT-Node
rlm_ldap: LDAP radiusLoginLATGroup mapped to RADIUS Login-LAT-Group
rlm_ldap: LDAP radiusFramedAppleTalkLink mapped to RADIUS Framed-AppleTalk-Link
rlm_ldap: LDAP radiusFramedAppleTalkNetwork mapped to RADIUS Framed-AppleTalk-Network
rlm_ldap: LDAP radiusFramedAppleTalkZone mapped to RADIUS Framed-AppleTalk-Zone
rlm_ldap: LDAP radiusPortLimit mapped to RADIUS Port-Limit
rlm_ldap: LDAP radiusLoginLATPort mapped to RADIUS Login-LAT-Port
rlm_ldap: LDAP radiusReplyMessage mapped to RADIUS Reply-Message
rlm_ldap: LDAP radiusTunnelType mapped to RADIUS Tunnel-Type
rlm_ldap: LDAP radiusTunnelMediumType mapped to RADIUS Tunnel-Medium-Type
rlm_ldap: LDAP radiusTunnelPrivateGroupId mapped to RADIUS Tunnel-Private-Group-Id
conns: 0xae5880
Module: Linked to module rlm_eap
Module: Instantiating module "eap" from file /etc/freeradius/eap.conf
  eap {
        default_eap_type = "md5"
        timer_expire = 60
        ignore_unknown_eap_types = no
        cisco_accounting_username_bug = no
        max_sessions = 4096
  }
Module: Linked to sub-module rlm_eap_md5
Module: Instantiating eap-md5
Module: Linked to sub-module rlm_eap_leap
Module: Instantiating eap-leap
Module: Linked to sub-module rlm_eap_gtc
Module: Instantiating eap-gtc
   gtc {
        challenge = ": "
        auth_type = "PAP"
   }
Module: Linked to sub-module rlm_eap_tls
Module: Instantiating eap-tls
   tls {
        rsa_key_exchange = no
        dh_key_exchange = yes
        rsa_key_length = 512
        dh_key_length = 512
        verify_depth = 0
        pem_file_type = yes
        private_key_file = "/etc/freeradius/certs/freeradius.pem"
        certificate_file = "/etc/freeradius/certs/freeradius.pem"
        CA_file = "/etc/freeradius/certs/ca.pem"
        private_key_password = "whatever"
        dh_file = "/etc/freeradius/certs/dh"
        random_file = "/dev/urandom"
        fragment_size = 1024
        include_length = yes
        check_crl = no
        cipher_list = "DEFAULT"
    cache {
        enable = no
        lifetime = 24
        max_entries = 255
    }
   }
WARNING: rlm_eap_tls: Unable to set DH parameters.  DH cipher suites may not work!
WARNING: Fix this by running the OpenSSL command listed in eap.conf
Module: Linked to sub-module rlm_eap_ttls
Module: Instantiating eap-ttls
   ttls {
        default_eap_type = "md5"
        copy_request_to_tunnel = no
        use_tunneled_reply = no
        virtual_server = "inner-tunnel"
        include_length = yes
   }
Module: Linked to sub-module rlm_eap_peap
Module: Instantiating eap-peap
   peap {
        default_eap_type = "mschapv2"
        copy_request_to_tunnel = no
        use_tunneled_reply = no
        proxy_tunneled_request_as_eap = yes
        virtual_server = "inner-tunnel"
   }
Module: Linked to sub-module rlm_eap_mschapv2
Module: Instantiating eap-mschapv2
   mschapv2 {
        with_ntdomain_hack = no
   }
Module: Checking authorize {...} for more modules to load
Module: Linked to module rlm_realm
Module: Instantiating module "suffix" from file /etc/freeradius/modules/realm
  realm suffix {
        format = "suffix"
        delimiter = "@"
        ignore_default = no
        ignore_null = no
  }
Module: Linked to module rlm_files
Module: Instantiating module "files" from file /etc/freeradius/modules/files
  files {
        usersfile = "/etc/freeradius/localusers"
        acctusersfile = "/etc/freeradius/acct_users"
        preproxy_usersfile = "/etc/freeradius/preproxy_users"
        compat = "no"
  }
Module: Checking session {...} for more modules to load
Module: Linked to module rlm_radutmp
Module: Instantiating module "radutmp" from file /etc/freeradius/modules/radutmp
  radutmp {
        filename = "/var/log/freeradius/radutmp"
        username = "%{User-Name}"
        case_sensitive = yes
        check_with_nas = yes
        perm = 384
        callerid = yes
  }
Module: Checking post-proxy {...} for more modules to load
Module: Checking post-auth {...} for more modules to load
Module: Linked to module rlm_attr_filter
Module: Instantiating module "attr_filter.access_reject" from file /etc/freeradius/modules/attr_filter
  attr_filter attr_filter.access_reject {
        attrsfile = "/etc/freeradius/attrs.access_reject"
        key = "%{User-Name}"
  }
} # modules
} # server
server { # from file /etc/freeradius/radiusd.conf
modules {
Module: Checking authenticate {...} for more modules to load
Module: Checking authorize {...} for more modules to load
Module: Linked to module rlm_preprocess
Module: Instantiating module "preprocess" from file /etc/freeradius/modules/preprocess
  preprocess {
        huntgroups = "/etc/freeradius/huntgroups"
        hints = "/etc/freeradius/hints"
        with_ascend_hack = no
        ascend_channels_per_line = 23
        with_ntdomain_hack = no
        with_specialix_jetstream_hack = no
        with_cisco_vsa_hack = no
        with_alvarion_vsa_hack = no
  }
Module: Checking preacct {...} for more modules to load
Module: Linked to module rlm_acct_unique
Module: Instantiating module "acct_unique" from file /etc/freeradius/modules/acct_unique
  acct_unique {
        key = "User-Name, Acct-Session-Id, NAS-IP-Address, Client-IP-Address, NAS-Port"
  }
Module: Checking accounting {...} for more modules to load
Module: Linked to module rlm_detail
Module: Instantiating module "detail" from file /etc/freeradius/modules/detail
  detail {
        detailfile = "/var/log/freeradius/radacct/%{Client-IP-Address}/detail-%Y%m%d"
        header = "%t"
        detailperm = 384
        dirperm = 493
        locking = no
        log_packet_header = no
  }
/etc/freeradius/sites-enabled/default[378]: Failed to load module "sqlippool".
/etc/freeradius/sites-enabled/default[355]: Errors parsing accounting section.

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
/etc/freeradius$ sudo ls -lha /etc/freeradius

locadmin@KUHERA01:/etc/freeradius$ sudo ls -lha /etc/freeradius
total 300K
drwxr-s--x   7 freerad  freerad 4.0K May 31 14:33 .
drwxr-xr-x 112 root     root    4.0K May 31 14:30 ..
-rw-r--r--   1 root     root     671 Sep 24  2012 acct_users
-rw-r--r--   1 root     root    4.1K Sep 24  2012 attrs
-rw-r--r--   1 root     root     513 Sep 24  2012 attrs.access_challenge
-rw-r--r--   1 root     root     458 Sep 24  2012 attrs.access_reject
-rw-r--r--   1 root     root     437 Sep 24  2012 attrs.accounting_response
-rw-r--r--   1 root     root    2.0K Sep 24  2012 attrs.pre-proxy
drwxr-xr-x   2 root     root    4.0K Mar  1 14:25 certs
-rw-r-----   1 root     freerad  431 May 31 14:33 clients.conf
-rw-r--r--   1 root     root     877 Sep 24  2012 dictionary
-rw-r-----   1 root     freerad  15K May 31 14:33 eap.conf
-rw-r--r--   1 root     root     13K Sep 24  2012 experimental.conf
-rw-r--r--   1 root     root    2.3K Sep 24  2012 hints
-rw-r--r--   1 root     root    1.6K Sep 24  2012 huntgroups
-rw-r--r--   1 root     root    3.2K Sep 24  2012 ldap.attrmap
-rw-r-----   1 locadmin freerad  51K May 31 11:59 localusers
drwxr-xr-x   2 root     root    4.0K May 31 14:33 modules
-rw-r--r--   1 root     root    2.8K Sep 24  2012 policy.conf
-rw-r--r--   1 root     root    4.8K Sep 24  2012 policy.txt
-rw-r--r--   1 root     root     984 Sep 24  2012 preproxy_users
-rw-r--r--   1 root     root     26K Sep 24  2012 proxy.conf
-rw-r-----   1 root     freerad  27K May 31 14:33 radiusd.conf
drwxr-xr-x   2 root     root    4.0K May 31 14:33 sites-available
drwxr-xr-x   2 root     root    4.0K Mar  1 15:54 sites-enabled
drwxr-xr-x   3 root     root    4.0K Mar  1 14:56 sql
-rw-r--r--   1 root     root    3.0K Mar  1 14:56 sql.conf
-rw-r--r--   1 root     root    2.5K Mar  1 15:52 sqlippool.conf
-rw-r--r--   1 root     root    3.6K Sep 24  2012 templates.conf
-rw-r-----   1 root     freerad   60 May 31 14:33 users
-rw-r-----   1 root     freerad  51K Mar  1 14:53 users.bak



« Last Edit: June 03, 2013, 11:44:06 am by plierop »

plierop

  • Zen Apprentice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Zentyal 3.0 Freeradius not starting after dist-upgrade
« Reply #1 on: June 04, 2013, 12:04:57 pm »
No one to help me ??

robb

  • Guest
Re: Zentyal 3.0 Freeradius not starting after dist-upgrade
« Reply #2 on: June 06, 2013, 08:51:24 am »
Plierop,
Ik zou in dit geval toch eerder op het Engelstalige forum je vraag stellen. Wellicht omdat de meeste .nl leden redelijk tot goed Engels kunnen lezen en schrijven is dit forum (helaas) niet zo actief. Het Russische forum is bijvoorbeeld zeer actief, en dat is ook direct toe te wijzen aan de leden die geen Engels kunnen lezen en schrijven.

Ikzelf gebruik geen Radius en heb er ook niet eerder mee gewerkt. Ik moet je het antwoord dan ook schuldig blijven.

Nog 1 tip: als je grote logbestanden hebt, is je post leesbaarder als je die logs in een tekstbestand toevoegt of via een paste dienst (bijv http://paste.ubuntu.com/ , http://pastie.org/ of http://pastebin.com/ ) een link toevoegen.
« Last Edit: June 06, 2013, 08:54:56 am by robb »