{"action":"created","issue":{"url":"https://api.github.com/repos/Optware/Optware-ng/issues/125","repository_url":"https://api.github.com/repos/Optware/Optware-ng","labels_url":"https://api.github.com/repos/Optware/Optware-ng/issues/125/labels{/name}","comments_url":"https://api.github.com/repos/Optware/Optware-ng/issues/125/comments","events_url":"https://api.github.com/repos/Optware/Optware-ng/issues/125/events","html_url":"https://github.com/Optware/Optware-ng/issues/125","id":159532122,"number":125,"title":"freeradius 3.0.10-2 needs extensive tweaks to work - now stuck on radtest","user":{"login":"zebralight","id":1592194,"avatar_url":"https://avatars.githubusercontent.com/u/1592194?v=3","gravatar_id":"","url":"https://api.github.com/users/zebralight","html_url":"https://github.com/zebralight","followers_url":"https://api.github.com/users/zebralight/followers","following_url":"https://api.github.com/users/zebralight/following{/other_user}","gists_url":"https://api.github.com/users/zebralight/gists{/gist_id}","starred_url":"https://api.github.com/users/zebralight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zebralight/subscriptions","organizations_url":"https://api.github.com/users/zebralight/orgs","repos_url":"https://api.github.com/users/zebralight/repos","events_url":"https://api.github.com/users/zebralight/events{/privacy}","received_events_url":"https://api.github.com/users/zebralight/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-06-09T23:39:56Z","updated_at":"2016-10-12T06:02:18Z","closed_at":null,"body":"Hello.  I tried running \"radiusd -XX\" as \"./S55freeradius\" and initially got an error which prompted me to install libpcap.  I did that and in the absence of other dependencies, I ran both again with the following results:\r\n```\r\n./S55freeradius: line 5: /opt/bin/pidof: not found\r\nadmin@ASUS:/tmp/mnt/entware_etc/optware-ng.arm/etc/init.d# radiusd -XX\r\nThu Jun  9 16:07:59 2016 : Debug: Server was built with: \r\nThu Jun  9 16:07:59 2016 : Debug:   accounting               : yes\r\nThu Jun  9 16:07:59 2016 : Debug:   authentication           : yes\r\nThu Jun  9 16:07:59 2016 : Debug:   ascend-binary-attributes : yes\r\nThu Jun  9 16:07:59 2016 : Debug:   coa                      : yes\r\nThu Jun  9 16:07:59 2016 : Debug:   control-socket           : yes\r\nThu Jun  9 16:07:59 2016 : Debug:   detail                   : yes\r\nThu Jun  9 16:07:59 2016 : Debug:   dhcp                     : yes\r\nThu Jun  9 16:07:59 2016 : Debug:   dynamic-clients          : yes\r\nThu Jun  9 16:07:59 2016 : Debug:   osfc2                    : no\r\nThu Jun  9 16:07:59 2016 : Debug:   proxy                    : yes\r\nThu Jun  9 16:07:59 2016 : Debug:   regex-pcre               : yes\r\nThu Jun  9 16:07:59 2016 : Debug:   regex-posix              : no\r\nThu Jun  9 16:07:59 2016 : Debug:   regex-posix-extended     : no\r\nThu Jun  9 16:07:59 2016 : Debug:   session-management       : yes\r\nThu Jun  9 16:07:59 2016 : Debug:   stats                    : yes\r\nThu Jun  9 16:07:59 2016 : Debug:   tcp                      : yes\r\nThu Jun  9 16:07:59 2016 : Debug:   threads                  : yes\r\nThu Jun  9 16:07:59 2016 : Debug:   tls                      : yes\r\nThu Jun  9 16:07:59 2016 : Debug:   unlang                   : yes\r\nThu Jun  9 16:07:59 2016 : Debug:   vmps                     : yes\r\nThu Jun  9 16:07:59 2016 : Debug:   developer                : no\r\nThu Jun  9 16:07:59 2016 : Debug: Server core libs:\r\nThu Jun  9 16:07:59 2016 : Debug:   freeradius-server        : 3.0.10\r\nThu Jun  9 16:07:59 2016 : Debug:   talloc                   : 2.0.*\r\nThu Jun  9 16:07:59 2016 : Debug:   ssl                      : 1.0.2f release\r\nThu Jun  9 16:07:59 2016 : Debug:   pcre                     : 8.36 2014-09-26\r\nThu Jun  9 16:07:59 2016 : Debug: Endianness:\r\nThu Jun  9 16:07:59 2016 : Debug:   little\r\nThu Jun  9 16:07:59 2016 : Debug: Compilation flags:\r\nThu Jun  9 16:07:59 2016 : Info: Copyright (C) 1999-2015 The FreeRADIUS server project and contributors\r\nThu Jun  9 16:07:59 2016 : Info: There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A\r\nThu Jun  9 16:07:59 2016 : Info: PARTICULAR PURPOSE\r\nThu Jun  9 16:07:59 2016 : Info: You may redistribute copies of FreeRADIUS under the terms of the\r\nThu Jun  9 16:07:59 2016 : Info: GNU General Public License\r\nThu Jun  9 16:07:59 2016 : Info: For more information about these matters, see the file named COPYRIGHT\r\nThu Jun  9 16:07:59 2016 : Info: Starting - reading configuration files ...\r\nThu Jun  9 16:07:59 2016 : Debug: including dictionary file /opt/share/freeradius/dictionary\r\nThu Jun  9 16:07:59 2016 : Debug: including dictionary file /opt/share/freeradius/dictionary.dhcp\r\nThu Jun  9 16:07:59 2016 : Debug: including dictionary file /opt/share/freeradius/dictionary.vqp\r\nThu Jun  9 16:07:59 2016 : Debug: including dictionary file /opt/etc/raddb/dictionary\r\nThu Jun  9 16:07:59 2016 : Debug: including configuration file /opt/etc/raddb/radiusd.conf\r\nThu Jun  9 16:07:59 2016 : Debug: including configuration file /opt/etc/raddb/proxy.conf\r\nThu Jun  9 16:07:59 2016 : Debug: including configuration file /opt/etc/raddb/clients.conf\r\nThu Jun  9 16:07:59 2016 : Debug: including configuration file /opt/etc/raddb/snmp.conf\r\nThu Jun  9 16:07:59 2016 : Error: Unable to open file \"/opt/etc/raddb/snmp.conf\": No such file or directory\r\nThu Jun  9 16:07:59 2016 : Error: Errors reading or parsing /opt/etc/raddb/radiusd.conf\r\n```\r\nI managed to fix the \"line 5: /opt/bin/pidof: not found\" error by changing the path in the init script from \"/opt/bin/pidof\" to \"/bin/pidof\"\r\n\r\nI also fixed the error \"Error: Unable to open file \"/opt/etc/raddb/snmp.conf\": No such file or directory\" by commenting out the \"$INCLUDE  ${confdir}/snmp.conf\" in radiusd.conf.  I had also commented out $INCLUDE  ${confdir}/sql.conf\r\n\r\nBut once those are addressed, I get a bit further until I get the following error from running radiusd -XX (as well as -XC and just -X):\r\n\r\n```\r\nThu Jun  9 16:05:16 2016 : Error: /opt/etc/raddb/radiusd.conf[273]: Configuration item \"allow_core_dumps\" is deprecated radiusd: Error: Failed to parse user/group information.\r\n```\r\nAnd then that started a line of commenting out or flat out removing chunks of radiusd.conf that made references to deprecated commands.\r\n\r\nThankfully, the lines of deprecated code was limited to around 50 lines, but then now I'm trying to run radtest and I ran it as suggested [the freeradius wiki](http://wiki.freeradius.org/guide/Basic-configuration-HOWTO):\r\n\r\n> radtest testing password localhost 0 testing123\r\n\r\nand the the echoed prompt:\r\n\r\n> admin@ASUS:/tmp/home/root# radtest\r\n> Usage: radtest [OPTIONS] user passwd radius-server[:port] nas-port-number secret [ppphint] [nasname]\r\n>         -d RADIUS_DIR       Set radius directory\r\n>         -t <type>           Set authentication method\r\n>                             type can be pap, chap, mschap, or eap-md5\r\n>         -P protocol         Select udp (default) or tcp\r\n>         -x                  Enable debug output\r\n>         -4                  Use IPv4 for the NAS address (default)\r\n>         -6                  Use IPv6 for the NAS address\r\n\r\nUnfortunately, that yielded\r\n\r\nadmin@ASUS:/tmp/home/root# radtest testing password localhost 0 testing123\r\n/opt/bin/radtest: line 116: hostname: not found\r\n(0) Error parsing \"stdin\": Failed to get value\r\n\r\nI was, however, able to take a stab in the dark and enter more arguments until something gave:\r\n\r\n> \r\n> admin@ASUS:/tmp/home/root# **radtest testing password localhost 0 testing123 0 localhost**\r\n> Sent Access-Request Id 1 from 0.0.0.0:37082 to 127.0.0.1:1812 length 77\r\n> \tUser-Name = \"testing\"\r\n> \tUser-Password = \"password\"\r\n> \tNAS-IP-Address = 127.0.0.1\r\n> \tNAS-Port = 0\r\n> \tMessage-Authenticator = 0x00\r\n> \tCleartext-Password = \"password\"\r\n> Sent Access-Request Id 1 from 0.0.0.0:37082 to 127.0.0.1:1812 length 77\r\n> \tUser-Name = \"testing\"\r\n> \tUser-Password = \"password\"\r\n> \tNAS-IP-Address = 127.0.0.1\r\n> \tNAS-Port = 0\r\n> \tMessage-Authenticator = 0x00\r\n> \tCleartext-Password = \"password\"\r\n> Sent Access-Request Id 1 from 0.0.0.0:37082 to 127.0.0.1:1812 length 77\r\n> \tUser-Name = \"testing\"\r\n> \tUser-Password = \"password\"\r\n> \tNAS-IP-Address = 127.0.0.1\r\n> \tNAS-Port = 0\r\n> \tMessage-Authenticator = 0x00\r\n> \tCleartext-Password = \"password\"\r\n> (0) No reply from server for ID 1 socket 3\r\n\r\nI tried reading the script /opt/bin/radtest but I only know so much bash that I wasn't able to decipher through all the if statements why I needed to add 2 more arguments with that particular syntax.\r\n\r\nI had tried looking up the error verbatim in various combos as well as scoured the README files in each directory in /opt/etc/raddb with no answer in sight.  Thank you so much for making available freeradius on optware!  Please let me know if you need any other information for troubleshooting this as I'd love to get freeradius to be up and running."},"comment":{"url":"https://api.github.com/repos/Optware/Optware-ng/issues/comments/253126932","html_url":"https://github.com/Optware/Optware-ng/issues/125#issuecomment-253126932","issue_url":"https://api.github.com/repos/Optware/Optware-ng/issues/125","id":253126932,"user":{"login":"zebralight","id":1592194,"avatar_url":"https://avatars.githubusercontent.com/u/1592194?v=3","gravatar_id":"","url":"https://api.github.com/users/zebralight","html_url":"https://github.com/zebralight","followers_url":"https://api.github.com/users/zebralight/followers","following_url":"https://api.github.com/users/zebralight/following{/other_user}","gists_url":"https://api.github.com/users/zebralight/gists{/gist_id}","starred_url":"https://api.github.com/users/zebralight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zebralight/subscriptions","organizations_url":"https://api.github.com/users/zebralight/orgs","repos_url":"https://api.github.com/users/zebralight/repos","events_url":"https://api.github.com/users/zebralight/events{/privacy}","received_events_url":"https://api.github.com/users/zebralight/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T06:02:18Z","updated_at":"2016-10-12T06:02:18Z","body":"hi alllexx88.  My router died and I had to deal with a non-wrt based router until I scraped together enough cash for a new one.  I had actually reinstalled optware from scratch and it looks like freeradius 3 is on a different version now.  Unfortunately, I'm getting this message when trying to run \"radiusd -X\" immediately upon installing freeradius:\r\n\r\n`/tmp/mnt/optware/optware-ng.arm/sbin/radiusd: can't load library 'libcap.so.2'`\r\n\r\nany helo would be much appreciated.  Hope all's well!"}}
{"actor":{"display_login":"zebralight"}}