Freeradius-Users
Threads by month
- ----- 2026 -----
- July
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2005 -----
- December
- November
- October
- September
- August
- July
- June
- May
July 2012
- 89 participants
- 117 discussions
Hi, everybody.
I was reading the "Deploying FreeRADIUS with the MySQL Cluster Database" whitepaper downloaded from MySQL website, it mentions in "3.1 Deployment Topologies" section that MySQL cluster can be integrated with FreeRADIUS but it always mention FreeRADIUS to be installed in a single node, would be a way to setup FreeRADIUS to be also failover the same way MySQL is, and not run just in a single node always?
Note: Before reply saying that this question should be posted in MySQL forums please consider that I am not asking about MySQL configurations, I am asking about FreeRADIUS product, many thanks to everybody!
Aldo Zavala
2
2
Hi all,
I am running freeradius2.1.12, having recently upgraded from freeradius
1, where this worked perfectly.
I use LDAP authentication from my radius server for ADSL, 3g and wifi
users, each with their own realm set up. Now for support staff we have
another separate apn using a single user name without a password and no
realm. For this I use a Perl accounting module. The whole idea is to
hit LDAP authorization/accounting first and upon not finding the user,
fall through to Perl auth/accounting because it is listed last in my
users file. This works perfectly. However, when the Perl auth-Type is
switched on, my ADSL users auth against LDAP, LDAP returns all the
relevant user info, exits with ok, but then everything is passed to
Perl, which rejects it. Why does radius not exit when LDAP is successful?
I hope you understand what I mean.
Regards,
To read FirstRand Bank's Disclaimer for this email click on the following address or copy into your Internet browser:
https://www.fnb.co.za/disclaimer.html
If you are unable to access the Disclaimer, send a blank e-mail to
firstrandbankdisclaimer(a)fnb.co.za and we will send you a copy of the Disclaimer.
2
1
I have increased the value of MAX_QUERY_LEN in freeradius-server-2.1.12/src/modules/rlm_sql/conf.h
(#define MAX_QUERY_LEN 8192)
There are still duplicated connections/sessions , example sqltrace:
INSERT INTO radacct (acctsessionid, acctuniqueid, username, realm, nasipaddress, nasportid, nasporttype, acctstarttime, acctstoptime, acctsessiontime, acctauthentic, connectinfo_start, connectinfo_stop, acctinputoctets, acctoutputoctets, calledstationid, callingstationid, acctterminatecause, servicetype, framedprotocol, framedipaddress, acctstartdelay, acctstopdelay, xascendsessionsvrkey) VALUES ('erx ip:109.226.0.17:147.235.134.47:ef47:632c:606b:498b:4fdbe98:0050515007', 'e2faac6ede73a716', '37444332', 'ccc', '109.226.1.20', '23437230', 'Virtual', '2012-07-19 01:54:07', NULL, '0', 'RADIUS', '', '', '0', '0', '', '47 5/1 vlan-id 1421:32', '', 'Framed-User', 'PPP', '109.226.50.244', '0', '0', '');
UPDATE radacct SET acctstoptime = '2012-07-19 01:54:55', acctsessiontime = '48', acctinputoctets = '0' << 32 | '60', acctoutputoctets = '0' << 32 | '60', acctterminatecause = 'NAS-Request', acctstopdelay = '0', connectinfo_stop = '' WHERE acctsessionid = 'erx ip:109.226.0.17:147.235.134.47:ef47:632c:606b:498b:4fdbe98:0050515007' AND username = '37444332' AND nasipaddress = '109.226.1.20';
INSERT INTO radacct (acctsessionid, acctuniqueid, username, realm, nasipaddress, nasportid, nasporttype, acctstarttime, acctstoptime, acctsessiontime, acctauthentic, connectinfo_start, connectinfo_stop, acctinputoctets, acctoutputoctets, calledstationid, callingstationid, acctterminatecause, servicetype, framedprotocol, framedipaddress, acctstartdelay, acctstopdelay, xascendsessionsvrkey) VALUES ('erx ip:109.226.0.17:147.235.134.47:ef47:632c:35a4:4aaa:4fdc13c:0050515459', 'ec2da39d0766abef', '37444332', 'ccc', '109.226.1.20', '23438030', 'Virtual', '2012-07-19 01:56:02', NULL, '0', 'RADIUS', '', '', '0', '0', '', '47 5/1 vlan-id 1421:32', '', 'Framed-User', 'PPP', '109.226.50.185', '0', '0', '');
UPDATE radacct SET acctstoptime = '2012-07-19 01:56:52', acctsessiontime = '50', acctinputoctets = '0' << 32 | '60', acctoutputoctets = '0' << 32 | '510', acctterminatecause = 'NAS-Request', acctstopdelay = '0', connectinfo_stop = '' WHERE acctsessionid = 'erx ip:109.226.0.17:147.235.134.47:ef47:632c:35a4:4aaa:4fdc13c:0050515459' AND username = '37444332' AND nasipaddress = '109.226.1.20';
INSERT INTO radacct (acctsessionid, acctuniqueid, username, realm, nasipaddress, nasportid, nasporttype, acctstarttime, acctstoptime, acctsessiontime, acctauthentic, connectinfo_start, connectinfo_stop, acctinputoctets, acctoutputoctets, calledstationid, callingstationid, acctterminatecause, servicetype, framedprotocol, framedipaddress, acctstartdelay, acctstopdelay, xascendsessionsvrkey) VALUES ('erx ip:109.226.0.17:147.235.134.47:ef47:632c:cfbc:4aff:4fdc2b2:0050515722', 'bfede13c66b4f238', '37444332', 'ccc', '109.226.1.20', '23438472', 'Virtual', '2012-07-19 01:57:05', NULL, '0', 'RADIUS', '', '', '0', '0', '', '47 5/1 vlan-id 1421:32', '', 'Framed-User', 'PPP', '37.19.123.248', '0', '0', '');
UPDATE radacct SET acctstoptime = '2012-07-19 01:57:54', acctsessiontime = '49', acctinputoctets = '0' << 32 | '60', acctoutputoctets = '0' << 32 | '8366', acctterminatecause = 'NAS-Request', acctstopdelay = '0', connectinfo_stop = '' WHERE acctsessionid = 'erx ip:109.226.0.17:147.235.134.47:ef47:632c:cfbc:4aff:4fdc2b2:0050515722' AND username = '37444332' AND nasipaddress = '109.226.1.20';
INSERT INTO radacct (acctsessionid, acctuniqueid, username, realm, nasipaddress, nasportid, nasporttype, acctstarttime, acctstoptime, acctsessiontime, acctauthentic, connectinfo_start, connectinfo_stop, acctinputoctets, acctoutputoctets, calledstationid, callingstationid, acctterminatecause, servicetype, framedprotocol, framedipaddress, acctstartdelay, acctstopdelay, xascendsessionsvrkey) VALUES ('erx ip:109.226.0.17:147.235.134.47:ef47:632c:3374:4b57:4fdc420:0050515966', '457b5c3e9fc92416', '37444332', 'ccc', '109.226.1.20', '23438894', 'Virtual', '2012-07-19 01:58:07', NULL, '0', 'RADIUS', '', '', '0', '0', '', '47 5/1 vlan-id 1421:32', '', 'Framed-User', 'PPP', '109.226.50.123', '0', '0', '');
UPDATE radacct SET acctstoptime = '2012-07-19 01:58:55', acctsessiontime = '48', acctinputoctets = '0' << 32 | '60', acctoutputoctets = '0' << 32 | '60', acctterminatecause = 'NAS-Request', acctstopdelay = '0', connectinfo_stop = '' WHERE acctsessionid = 'erx ip:109.226.0.17:147.235.134.47:ef47:632c:3374:4b57:4fdc420:0050515966' AND username = '37444332' AND nasipaddress = '109.226.1.20';
INSERT INTO radacct (acctsessionid, acctuniqueid, username, realm, nasipaddress, nasportid, nasporttype, acctstarttime, acctstoptime, acctsessiontime, acctauthentic, connectinfo_start, connectinfo_stop, acctinputoctets, acctoutputoctets, calledstationid, callingstationid, acctterminatecause, servicetype, framedprotocol, framedipaddress, acctstartdelay, acctstopdelay, xascendsessionsvrkey) VALUES ('erx ip:109.226.0.17:147.235.134.47:ef47:632c:a3cc:4c38:4fdc6dc:0050516423', '8a877ece67a03d30', '37444332', 'ccc', '109.226.1.20', '23439680', 'Virtual', '2012-07-19 02:00:02', NULL, '0', 'RADIUS', '', '', '0', '0', '', '47 5/1 vlan-id 1421:32', '', 'Framed-User', 'PPP', '37.19.123.3', '0', '0', '');
UPDATE radacct SET acctstoptime = '2012-07-19 02:00:51', acctsessiontime = '50', acctinputoctets = '0' << 32 | '884', acctoutputoctets = '0' << 32 | '2533', acctterminatecause = 'NAS-Request', acctstopdelay = '0', connectinfo_stop = '' WHERE acctsessionid = 'erx ip:109.226.0.17:147.235.134.47:ef47:632c:a3cc:4c38:4fdc6dc:0050516423' AND username = '37444332' AND nasipaddress = '109.226.1.20';
INSERT INTO radacct (acctsessionid, acctuniqueid, username, realm, nasipaddress, nasportid, nasporttype, acctstarttime, acctstoptime, acctsessiontime, acctauthentic, connectinfo_start, connectinfo_stop, acctinputoctets, acctoutputoctets, calledstationid, callingstationid, acctterminatecause, servicetype, framedprotocol, framedipaddress, acctstartdelay, acctstopdelay, xascendsessionsvrkey) VALUES ('erx ip:109.226.0.17:147.235.134.47:ef47:632c:5906:4cba:4fdc862:0050516674', '33c5a9b6537fe1a7', '37444332', 'ccc', '109.226.1.20', '23440112', 'Virtual', '2012-07-19 02:01:05', NULL, '0', 'RADIUS', '', '', '0', '0', '', '47 5/1 vlan-id 1421:32', '', 'Framed-User', 'PPP', '37.19.123.60', '0', '0', '');
UPDATE radacct SET acctstoptime = '2012-07-19 02:01:53', acctsessiontime = '49', acctinputoctets = '0' << 32 | '60', acctoutputoctets = '0' << 32 | '60', acctterminatecause = 'NAS-Request', acctstopdelay = '0', connectinfo_stop = '' WHERE acctsessionid = 'erx ip:109.226.0.17:147.235.134.47:ef47:632c:5906:4cba:4fdc862:0050516674' AND username = '37444332' AND nasipaddress = '109.226.1.20';
INSERT INTO radacct (acctsessionid, acctuniqueid, username, realm, nasipaddress, nasportid, nasporttype, acctstarttime, acctstoptime, acctsessiontime, acctauthentic, connectinfo_start, connectinfo_stop, acctinputoctets, acctoutputoctets, calledstationid, callingstationid, acctterminatecause, servicetype, framedprotocol, framedipaddress, acctstartdelay, acctstopdelay, xascendsessionsvrkey) VALUES ('erx ip:109.226.0.17:147.235.134.47:ef47:632c:8b2c:4d2b:4fdc9cf:0050516921', '030f231a545e7ca8', '37444332', 'ccc', '109.226.1.20', '23440548', 'Virtual', '2012-07-19 02:02:07', NULL, '0', 'RADIUS', '', '', '0', '0', '', '47 5/1 vlan-id 1421:32', '', 'Framed-User', 'PPP', '109.226.50.106', '0', '0', '');
INSERT INTO radacct (acctsessionid, acctuniqueid, username, realm, nasipaddress, nasportid, nasporttype, acctstarttime, acctstoptime, acctsessiontime, acctauthentic, connectinfo_start, connectinfo_stop, acctinputoctets, acctoutputoctets, calledstationid, callingstationid, acctterminatecause, servicetype, framedprotocol, framedipaddress, acctstartdelay, acctstopdelay, xascendsessionsvrkey) VALUES ('erx ip:109.226.0.17:147.235.134.47:ef47:632c:8b2c:4d2b:4fdc9cf:0050516921', '030f231a545e7ca8', '37444332', 'ccc', '109.226.1.20', '23440548', 'Virtual', '2012-07-19 02:02:10', NULL, '0', 'RADIUS', '', '', '0', '0', '', '47 5/1 vlan-id 1421:32', '', 'Framed-User', 'PPP', '109.226.50.106', '3', '0', '');
INSERT INTO radacct (acctsessionid, acctuniqueid, username, realm, nasipaddress, nasportid, nasporttype, acctstarttime, acctstoptime, acctsessiontime, acctauthentic, connectinfo_start, connectinfo_stop, acctinputoctets, acctoutputoctets, calledstationid, callingstationid, acctterminatecause, servicetype, framedprotocol, framedipaddress, acctstartdelay, acctstopdelay, xascendsessionsvrkey) VALUES ('erx ip:109.226.0.17:147.235.134.47:ef47:632c:8b2c:4d2b:4fdc9cf:0050516921', '030f231a545e7ca8', '37444332', 'ccc', '109.226.1.20', '23440548', 'Virtual', '2012-07-19 02:02:13', NULL, '0', 'RADIUS', '', '', '0', '0', '', '47 5/1 vlan-id 1421:32', '', 'Framed-User', 'PPP', '109.226.50.106', '6', '0', '');
INSERT INTO radacct (acctsessionid, acctuniqueid, username, realm, nasipaddress, nasportid, nasporttype, acctstarttime, acctstoptime, acctsessiontime, acctauthentic, connectinfo_start, connectinfo_stop, acctinputoctets, acctoutputoctets, calledstationid, callingstationid, acctterminatecause, servicetype, framedprotocol, framedipaddress, acctstartdelay, acctstopdelay, xascendsessionsvrkey) VALUES ('erx ip:109.226.0.17:147.235.134.47:ef47:632c:8b2c:4d2b:4fdc9cf:0050516921', '030f231a545e7ca8', '37444332', 'ccc', '109.226.1.20', '23440548', 'Virtual', '2012-07-19 02:02:16', NULL, '0', 'RADIUS', '', '', '0', '0', '', '47 5/1 vlan-id 1421:32', '', 'Framed-User', 'PPP', '109.226.50.106', '9', '0', '');
UPDATE radacct SET acctstoptime = '2012-07-19 02:05:20', acctsessiontime = '0', acctinputoctets = '0' << 32 | '0', acctoutputoctets = '0' << 32 | '0', acctterminatecause = 'User-Error', acctstopdelay = '9', connectinfo_stop = '' WHERE acctsessionid = 'erx ip:109.226.0.17:147.235.134.47:ef47:632c:631f:4e86:4fdcdb0:0050517366' AND username = '37444332' AND nasipaddress = '109.226.1.20';
UPDATE radacct SET acctstoptime = '2012-07-19 02:06:30', acctsessiontime = '0', acctinputoctets = '0' << 32 | '0', acctoutputoctets = '0' << 32 | '0', acctterminatecause = 'User-Error', acctstopdelay = '0', connectinfo_stop = '' WHERE acctsessionid = 'erx ip:109.226.0.17:147.235.134.47:ef47:632c:6cdc:4f2e:4fdcf3a:0050517571' AND username = '37444332' AND nasipaddress = '109.226.1.20';
UPDATE radacct SET acctstoptime = '2012-07-19 02:09:27', acctsessiontime = '0', acctinputoctets = '0' << 32 | '0', acctoutputoctets = '0' << 32 | '0', acctterminatecause = 'User-Error', acctstopdelay = '0', connectinfo_stop = '' WHERE acctsessionid = 'erx ip:109.226.0.17:147.235.134.47:ef47:632c:54bf:50a1:4fdd34a:0050518062' AND username = '37444332' AND nasipaddress = '109.226.1.20';
UPDATE radacct SET acctstoptime = '2012-07-19 02:09:34', acctsessiontime = '0', acctinputoctets = '0' << 32 | '0', acctoutputoctets = '0' << 32 | '0', acctterminatecause = 'User-Error', acctstopdelay = '3', connectinfo_stop = '' WHERE acctsessionid = 'erx ip:109.226.0.17:147.235.134.47:ef47:632c:54bf:50a1:4fdd34a:0050518062' AND username = '37444332' AND nasipaddress = '109.226.1.20';
UPDATE radacct SET acctstoptime = '2012-07-19 02:09:39', acctsessiontime = '0', acctinputoctets = '0' << 32 | '0', acctoutputoctets = '0' << 32 | '0', acctterminatecause = 'User-Error', acctstopdelay = '6', connectinfo_stop = '' WHERE acctsessionid = 'erx ip:109.226.0.17:147.235.134.47:ef47:632c:54bf:50a1:4fdd34a:0050518062' AND username = '37444332' AND nasipaddress = '109.226.1.20';
UPDATE radacct SET acctstoptime = '2012-07-19 02:09:42', acctsessiontime = '0', acctinputoctets = '0' << 32 | '0', acctoutputoctets = '0' << 32 | '0', acctterminatecause = 'User-Error', acctstopdelay = '9', connectinfo_stop = '' WHERE acctsessionid = 'erx ip:109.226.0.17:147.235.134.47:ef47:632c:54bf:50a1:4fdd34a:0050518062' AND username = '37444332' AND nasipaddress = '109.226.1.20';
INSERT INTO radacct (acctsessionid, acctuniqueid, username, realm, nasipaddress, nasportid, nasporttype, acctstarttime, acctstoptime, acctsessiontime, acctauthentic, connectinfo_start, connectinfo_stop, acctinputoctets, acctoutputoctets, calledstationid, callingstationid, acctterminatecause, servicetype, framedprotocol, framedipaddress, acctstartdelay, acctstopdelay, xascendsessionsvrkey) VALUES ('erx ip:109.226.0.17:147.235.134.47:ef47:632c:16c2:5208:4fdd690:0050518554', 'b7a5fb189479f0cb', '37444332', 'ccc', '109.226.1.20', '23443434', 'Virtual', '2012-07-19 02:11:08', NULL, '0', 'RADIUS', '', '', '0', '0', '', '47 5/1 vlan-id 1421:32', '', 'Framed-User', 'PPP', '109.226.50.139', '0', '0', '');
UPDATE radacct SET acctstoptime = '2012-07-19 02:11:10', acctsessiontime = '0', acctinputoctets = '0' << 32 | '0', acctoutputoctets = '0' << 32 | '0', acctterminatecause = 'NAS-Request', acctstopdelay = '0', connectinfo_stop = '' WHERE acctsessionid = 'erx ip:109.226.0.17:147.235.134.47:ef47:632c:608c:513e:4fdd4b8:0050518250' AND username = '37444332' AND nasipaddress = '109.226.1.20';
UPDATE radacct SET acctstoptime = '2012-07-19 02:11:56', acctsessiontime = '48', acctinputoctets = '0' << 32 | '60', acctoutputoctets = '0' << 32 | '60', acctterminatecause = 'NAS-Request', acctstopdelay = '0', connectinfo_stop = '' WHERE acctsessionid = 'erx ip:109.226.0.17:147.235.134.47:ef47:632c:16c2:5208:4fdd690:0050518554' AND username = '37444332' AND nasipaddress = '109.226.1.20';
INSERT INTO radacct (acctsessionid, acctuniqueid, username, realm, nasipaddress, nasportid, nasporttype, acctstarttime, acctstoptime, acctsessiontime, acctauthentic, connectinfo_start, connectinfo_stop, acctinputoctets, acctoutputoctets, calledstationid, callingstationid, acctterminatecause, servicetype, framedprotocol, framedipaddress, acctstartdelay, acctstopdelay, xascendsessionsvrkey) VALUES ('erx ip:109.226.0.17:147.235.134.47:ef47:632c:a25c:5339:4fdd952:0050519038', '41eb8518f08ff00c', '37444332', 'ccc', '109.226.1.20', '23444298', 'Virtual', '2012-07-19 02:13:02', NULL, '0', 'RADIUS', '', '', '0', '0', '', '47 5/1 vlan-id 1421:32', '', 'Framed-User', 'PPP', '109.226.30.184', '0', '0', '');
UPDATE radacct SET acctstoptime = '2012-07-19 02:13:53', acctsessiontime = '51', acctinputoctets = '0' << 32 | '60', acctoutputoctets = '0' << 32 | '60', acctterminatecause = 'NAS-Request', acctstopdelay = '0', connectinfo_stop = '' WHERE acctsessionid = 'erx ip:109.226.0.17:147.235.134.47:ef47:632c:a25c:5339:4fdd952:0050519038' AND username = '37444332' AND nasipaddress = '109.226.1.20';
INSERT INTO radacct (acctsessionid, acctuniqueid, username, realm, nasipaddress, nasportid, nasporttype, acctstarttime, acctstoptime, acctsessiontime, acctauthentic, connectinfo_start, connectinfo_stop, acctinputoctets, acctoutputoctets, calledstationid, callingstationid, acctterminatecause, servicetype, framedprotocol, framedipaddress, acctstartdelay, acctstopdelay, xascendsessionsvrkey) VALUES ('erx ip:109.226.0.17:147.235.134.47:ef47:632c:cdc4:53dc:4fddae5:0050519308', 'd12247653bf5ec9c', '37444332', 'ccc', '109.226.1.20', '23444766', 'Virtual', '2012-07-19 02:14:06', NULL, '0', 'RADIUS', '', '', '0', '0', '', '47 5/1 vlan-id 1421:32', '', 'Framed-User', 'PPP', '37.19.123.251', '0', '0', '');
UPDATE radacct SET acctstoptime = '2012-07-19 02:14:54', acctsessiontime = '48', acctinputoctets = '0' << 32 | '60', acctoutputoctets = '0' << 32 | '60', acctterminatecause = 'NAS-Request', acctstopdelay = '0', connectinfo_stop = '' WHERE acctsessionid = 'erx ip:109.226.0.17:147.235.134.47:ef47:632c:cdc4:53dc:4fddae5:0050519308' AND username = '37444332' AND nasipaddress = '109.226.1.20';
This seems to be the case for duplicated connections, there are several accounting start requests sent within a few seconds from each other, all of them create a new accounting record, and no stop request is sent for these sessions.
Could this be related to server load? Host is running on a VM with 4GB ram and 2 CPUs, running freeradius and a local ldap service (being replicated from master).
Server load seems to be close to zero during operation.
There are also some cases where ldap returns an error:
[ldap] ldap_search() failed: Timed out while waiting for server to respond. Please increase the timeout.
[ldap] search failed
[ldap] ldap_release_conn: Release Id: 11
++[ldap] returns fail
[ldap] ldap_search() failed: Timed out while waiting for server to respond. Please increase the timeout.
[ldap] search failed
[ldap] ldap_release_conn: Release Id: 15
++[ldap] returns fail
Also attached radius -X output:
radiusd: #### Instantiating modules ####
instantiate {
Module: Linked to module rlm_exec
Module: Instantiating module "exec" from file /etc/raddb/modules/exec
exec {
wait = no
input_pairs = "request"
shell_escape = yes
}
Module: Linked to module rlm_expr
Module: Instantiating module "expr" from file /etc/raddb/modules/expr
Module: Linked to module rlm_expiration
Module: Instantiating module "expiration" from file /etc/raddb/modules/expiration
expiration {
reply-message = "Password Has Expired "
}
Module: Linked to module rlm_logintime
Module: Instantiating module "logintime" from file /etc/raddb/modules/logintime
logintime {
reply-message = "You are calling outside your allowed timespan "
minimum-timeout = 60
}
}
radiusd: #### Loading Virtual Servers ####
server { # from file /etc/raddb/radiusd.conf
modules {
Module: Checking authenticate {...} for more modules to load
Module: Linked to module rlm_pap
Module: Instantiating module "pap" from file /etc/raddb/modules/pap.rpmsave
pap {
encryption_scheme = "auto"
auto_header = yes
}
Module: Linked to module rlm_chap
Module: Instantiating module "chap" from file /etc/raddb/modules/chap
Module: Linked to module rlm_mschap
Module: Instantiating module "mschap" from file /etc/raddb/modules/mschap
mschap {
use_mppe = yes
require_encryption = no
require_strong = no
with_ntdomain_hack = no
allow_retry = yes
}
Module: Linked to module rlm_unix
Module: Instantiating module "unix" from file /etc/raddb/modules/unix
unix {
radwtmp = "/var/log/radius/radwtmp"
}
Module: Linked to module rlm_ldap
Module: Instantiating module "ldap" from file /etc/raddb/modules/ldap
ldap {
server = "127.0.0.1"
port = 389
password = "freeradius"
identity = "cn=freeradius,ou=admins,ou=radius,dc=ccc,dc=net,dc=il"
net_timeout = 1
timeout = 20
timelimit = 20
tls_mode = no
start_tls = no
tls_require_cert = "allow"
tls {
start_tls = no
require_cert = "allow"
}
basedn = "ou=users,ou=radius,dc=ccc,dc=net,dc=il"
filter = "(uid=%{%{Stripped-User-Name}:-%{User-Name}})"
base_filter = "(objectclass=radiusprofile)"
default_profile = "uid=dialin_0Mb,ou=profiles,ou=radius,dc=ccc,dc=net,dc=il"
profile_attribute = "radiusProfileDn"
password_attribute = "userPassword"
auto_header = no
access_attr = "dialupAccess"
access_attr_used_for_allow = yes
groupname_attribute = "cn"
groupmembership_filter = "(|(&(objectClass=GroupOfNames)(member=%{Ldap-UserDn}))(&(objectClass=GroupOfUniqueNames)(uniquemember=%{Ldap-UserDn})))"
dictionary_mapping = "/etc/raddb/ldap.attrmap"
ldap_debug = 0
ldap_connections_number = 32
compare_check_items = no
do_xlat = yes
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/raddb/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: 0x12ac5c50
Module: Linked to module rlm_eap
Module: Instantiating module "eap" from file /etc/raddb/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 = "Password: "
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
CA_path = "/etc/raddb/certs"
pem_file_type = yes
private_key_file = "/etc/raddb/certs/server.pem"
certificate_file = "/etc/raddb/certs/server.pem"
CA_file = "/etc/raddb/certs/ca.pem"
private_key_password = "whatever"
dh_file = "/etc/raddb/certs/dh"
random_file = "/etc/raddb/certs/random"
fragment_size = 1024
include_length = yes
check_crl = no
cipher_list = "DEFAULT"
make_cert_command = "/etc/raddb/certs/bootstrap"
cache {
enable = no
lifetime = 24
max_entries = 255
}
verify {
}
ocsp {
enable = no
override_cert_url = yes
url = "http://127.0.0.1/ocsp/"
}
}
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"
soh = no
}
Module: Linked to sub-module rlm_eap_mschapv2
Module: Instantiating eap-mschapv2
mschapv2 {
with_ntdomain_hack = no
send_error = no
}
Module: Checking authorize {...} for more modules to load
Module: Linked to module rlm_preprocess
Module: Instantiating module "preprocess" from file /etc/raddb/modules/preprocess
preprocess {
huntgroups = "/etc/raddb/huntgroups"
hints = "/etc/raddb/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: Linked to module rlm_realm
Module: Instantiating module "suffix" from file /etc/raddb/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/raddb/modules/files
files {
usersfile = "/etc/raddb/users"
acctusersfile = "/etc/raddb/acct_users"
preproxy_usersfile = "/etc/raddb/preproxy_users"
compat = "no"
}
Module: Checking preacct {...} for more modules to load
Module: Linked to module rlm_acct_unique
Module: Instantiating module "acct_unique" from file /etc/raddb/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/raddb/modules/detail
detail {
detailfile = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d"
header = "%t"
detailperm = 384
dirperm = 493
locking = no
log_packet_header = no
}
Module: Instantiating module "detail.moreshet" from file /etc/raddb/modules/detail.moreshet
detail detail.moreshet {
detailfile = "/var/log/radius/radacct/moreshet.relay"
header = "%t"
detailperm = 384
dirperm = 493
locking = no
log_packet_header = no
}
Module: Linked to module rlm_sql
Module: Instantiating module "sql" from file /etc/raddb/sql.conf
sql {
driver = "rlm_sql_mysql"
server = "xxx.xxx.xxx.xxx"
port = ""
login = "root"
password = "xxxxxx"
radius_db = "radius"
read_groups = yes
sqltrace = yes
sqltracefile = "/var/log/radius/sqltrace.sql"
readclients = no
deletestalesessions = yes
num_sql_socks = 32
lifetime = 60
max_queries = 10
sql_user_name = "%{%{Stripped-User-Name}:-%{%{User-Name}:-DEFAULT}}"
default_user_profile = ""
nas_query = "SELECT id, nasname, shortname, type, secret FROM nas"
authorize_check_query = "SELECT id, username, attribute, value, op FROM radcheck WHERE username = '%{SQL-User-Name}' ORDER BY id"
authorize_reply_query = "SELECT id, username, attribute, value, op FROM radreply WHERE username = '%{SQL-User-Name}' ORDER BY id"
authorize_group_check_query = "SELECT id, groupname, attribute, Value, op FROM radgroupcheck WHERE groupname = '%{Sql-Group}' ORDER BY id"
authorize_group_reply_query = "SELECT id, groupname, attribute, value, op FROM radgroupreply WHERE groupname = '%{Sql-Group}' ORDER BY id"
accounting_onoff_query = "UPDATE radacct SET acctstoptime = '%S', acctsessiontime = unix_timestamp('%S') - unix_timestamp(acctstarttime), acctterminatecause = '%{Acct-Terminate-Cause}', acctstopdelay = %{%{Acct-Delay-Time}:-0} WHERE acctstoptime IS NULL AND nasipaddress = '%{NAS-IP-Address}' AND acctstarttime <= '%S'"
accounting_update_query = " UPDATE radacct SET framedipaddress = '%{Framed-IP-Address}', acctsessiontime = '%{Acct-Session-Time}', acctinputoctets = '%{%{Acct-Input-Gigawords}:-0}' << 32 | '%{%{Acct-Input-Octets}:-0}', acctoutputoctets = '%{%{Acct-Output-Gigawords}:-0}' << 32 | '%{%{Acct-Output-Octets}:-0}' WHERE acctsessionid = '%{Acct-Session-Id}' AND username = '%{SQL-User-Name}' AND nasipaddress = '%{NAS-IP-Address}'"
accounting_update_query_alt = " INSERT INTO radacct (acctsessionid, acctuniqueid, username, realm, nasipaddress, nasportid, nasporttype, acctstarttime, acctsessiontime, acctauthentic, connectinfo_start, acctinputoctets, acctoutputoctets, calledstationid, callingstationid, servicetype, framedprotocol, framedipaddress, acctstartdelay, xascendsessionsvrkey) VALUES ('%{Acct-Session-Id}', '%{Acct-Unique-Session-Id}', '%{SQL-User-Name}', '%{Realm}', '%{NAS-IP-Address}', '%{NAS-Port}', '%{NAS-Port-Type}', DATE_SUB('%S', INTERVAL (%{%{Acct-Session-Time}:-0} + %{%{Acct-Delay-Time}:-0}) SECOND), '%{Acct-Session-Time}', '%{Acct-Authentic}', '', '%{%{Acct-Input-Gigawords}:-0}' << 32 | '%{%{Acct-Input-Octets}:-0}', '%{%{Acct-Output-Gigawords}:-0}' << 32 | '%{%{Acct-Output-Octets}:-0}', '%{Called-Station-Id}', '%{Calling-Station-Id}', '%{Service-Type}', '%{Framed-Protocol}', '%{Framed-IP-Address}', '0', '%{X-Ascend-Session-Svr-Key}')"
accounting_start_query = " INSERT INTO radacct (acctsessionid, acctuniqueid, username, realm, nasipaddress, nasportid, nasporttype, acctstarttime, acctstoptime, acctsessiontime, acctauthentic, connectinfo_start, connectinfo_stop, acctinputoctets, acctoutputoctets, calledstationid, callingstationid, acctterminatecause, servicetype, framedprotocol, framedipaddress, acctstartdelay, acctstopdelay, xascendsessionsvrkey) VALUES ('%{Acct-Session-Id}', '%{Acct-Unique-Session-Id}', '%{SQL-User-Name}', '%{Realm}', '%{NAS-IP-Address}', '%{NAS-Port}', '%{NAS-Port-Type}', '%S', NULL, '0', '%{Acct-Authentic}', '%{Connect-Info}', '', '0', '0', '%{Called-Station-Id}', '%{Calling-Station-Id}', '', '%{Service-Type}', '%{Framed-Protocol}', '%{Framed-IP-Address}', '%{%{Acct-Delay-Time}:-0}', '0', '%{X-Ascend-Session-Svr-Key}')"
accounting_start_query_alt = " UPDATE radacct SET acctstarttime = '%S', acctstartdelay = '%{%{Acct-Delay-Time}:-0}', connectinfo_start = '%{Connect-Info}' WHERE acctsessionid = '%{Acct-Session-Id}' AND username = '%{SQL-User-Name}' AND nasipaddress = '%{NAS-IP-Address}'"
accounting_stop_query = " UPDATE radacct SET acctstoptime = '%S', acctsessiontime = '%{Acct-Session-Time}', acctinputoctets = '%{%{Acct-Input-Gigawords}:-0}' << 32 | '%{%{Acct-Input-Octets}:-0}', acctoutputoctets = '%{%{Acct-Output-Gigawords}:-0}' << 32 | '%{%{Acct-Output-Octets}:-0}', acctterminatecause = '%{Acct-Terminate-Cause}', acctstopdelay = '%{%{Acct-Delay-Time}:-0}', connectinfo_stop = '%{Connect-Info}' WHERE acctsessionid = '%{Acct-Session-Id}' AND username = '%{SQL-User-Name}' AND nasipaddress = '%{NAS-IP-Address}'"
accounting_stop_query_alt = " INSERT INTO radacct (acctsessionid, acctuniqueid, username, realm, nasipaddress, nasportid, nasporttype, acctstarttime, acctstoptime, acctsessiontime, acctauthentic, connectinfo_start, connectinfo_stop, acctinputoctets, acctoutputoctets, calledstationid, callingstationid, acctterminatecause, servicetype, framedprotocol, framedipaddress, acctstartdelay, acctstopdelay) VALUES ('%{Acct-Session-Id}', '%{Acct-Unique-Session-Id}', '%{SQL-User-Name}', '%{Realm}', '%{NAS-IP-Address}', '%{NAS-Port}', '%{NAS-Port-Type}', DATE_SUB('%S', INTERVAL (%{%{Acct-Session-Time}:-0} + %{%{Acct-Delay-Time}:-0}) SECOND), '%S', '%{Acct-Session-Time}', '%{Acct-Authentic}', '', '%{Connect-Info}', '%{%{Acct-Input-Gigawords}:-0}' << 32 | '%{%{Acct-Input-Octets}:-0}', '%{%{Acct-Output-Gigawords}:-0}' << 32 | '%{%{Acct-Output-Octets}:-0}', '%{Called-Station-Id}', '%{Calling-Station-Id}', '%{Acct-Terminate-Cause}', '%{Service-Type}', '%{Framed-Protocol}', '%{Framed-IP-Address}', '0', '%{%{Acct-Delay-Time}:-0}')"
group_membership_query = "SELECT groupname FROM radusergroup WHERE username = '%{SQL-User-Name}' ORDER BY priority"
connect_failure_retry_delay = 3
simul_count_query = ""
simul_verify_query = ""
postauth_query = " INSERT INTO radpostauth (username, pass, reply, authdate) VALUES ( '%{User-Name}', '%{%{User-Password}:-%{Chap-Password}}', '%{reply:Packet-Type}', '%S')"
safe-characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /"
}
rlm_sql (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked
rlm_sql (sql): Attempting to connect to root@xxx.xxx.xxx.xxx:/radius
rlm_sql (sql): starting 0
rlm_sql (sql): Attempting to connect rlm_sql_mysql #0
rlm_sql_mysql: Starting connect to MySQL server for #0
rlm_sql (sql): Connected new DB handle, #0
rlm_sql (sql): starting 1
rlm_sql (sql): Attempting to connect rlm_sql_mysql #1
rlm_sql_mysql: Starting connect to MySQL server for #1
rlm_sql (sql): Connected new DB handle, #1
rlm_sql (sql): starting 2
rlm_sql (sql): Attempting to connect rlm_sql_mysql #2
rlm_sql_mysql: Starting connect to MySQL server for #2
rlm_sql (sql): Connected new DB handle, #2
rlm_sql (sql): starting 3
rlm_sql (sql): Attempting to connect rlm_sql_mysql #3
rlm_sql_mysql: Starting connect to MySQL server for #3
rlm_sql (sql): Connected new DB handle, #3
rlm_sql (sql): starting 4
rlm_sql (sql): Attempting to connect rlm_sql_mysql #4
rlm_sql_mysql: Starting connect to MySQL server for #4
rlm_sql (sql): Connected new DB handle, #4
rlm_sql (sql): starting 5
rlm_sql (sql): Attempting to connect rlm_sql_mysql #5
rlm_sql_mysql: Starting connect to MySQL server for #5
rlm_sql (sql): Connected new DB handle, #5
rlm_sql (sql): starting 6
rlm_sql (sql): Attempting to connect rlm_sql_mysql #6
rlm_sql_mysql: Starting connect to MySQL server for #6
rlm_sql (sql): Connected new DB handle, #6
rlm_sql (sql): starting 7
rlm_sql (sql): Attempting to connect rlm_sql_mysql #7
rlm_sql_mysql: Starting connect to MySQL server for #7
rlm_sql (sql): Connected new DB handle, #7
rlm_sql (sql): starting 8
rlm_sql (sql): Attempting to connect rlm_sql_mysql #8
rlm_sql_mysql: Starting connect to MySQL server for #8
rlm_sql (sql): Connected new DB handle, #8
rlm_sql (sql): starting 9
rlm_sql (sql): Attempting to connect rlm_sql_mysql #9
rlm_sql_mysql: Starting connect to MySQL server for #9
rlm_sql (sql): Connected new DB handle, #9
rlm_sql (sql): starting 10
rlm_sql (sql): Attempting to connect rlm_sql_mysql #10
rlm_sql_mysql: Starting connect to MySQL server for #10
rlm_sql (sql): Connected new DB handle, #10
rlm_sql (sql): starting 11
rlm_sql (sql): Attempting to connect rlm_sql_mysql #11
rlm_sql_mysql: Starting connect to MySQL server for #11
rlm_sql (sql): Connected new DB handle, #11
rlm_sql (sql): starting 12
rlm_sql (sql): Attempting to connect rlm_sql_mysql #12
rlm_sql_mysql: Starting connect to MySQL server for #12
rlm_sql (sql): Connected new DB handle, #12
rlm_sql (sql): starting 13
rlm_sql (sql): Attempting to connect rlm_sql_mysql #13
rlm_sql_mysql: Starting connect to MySQL server for #13
rlm_sql (sql): Connected new DB handle, #13
rlm_sql (sql): starting 14
rlm_sql (sql): Attempting to connect rlm_sql_mysql #14
rlm_sql_mysql: Starting connect to MySQL server for #14
rlm_sql (sql): Connected new DB handle, #14
rlm_sql (sql): starting 15
rlm_sql (sql): Attempting to connect rlm_sql_mysql #15
rlm_sql_mysql: Starting connect to MySQL server for #15
rlm_sql (sql): Connected new DB handle, #15
rlm_sql (sql): starting 16
rlm_sql (sql): Attempting to connect rlm_sql_mysql #16
rlm_sql_mysql: Starting connect to MySQL server for #16
rlm_sql (sql): Connected new DB handle, #16
rlm_sql (sql): starting 17
rlm_sql (sql): Attempting to connect rlm_sql_mysql #17
rlm_sql_mysql: Starting connect to MySQL server for #17
rlm_sql (sql): Connected new DB handle, #17
rlm_sql (sql): starting 18
rlm_sql (sql): Attempting to connect rlm_sql_mysql #18
rlm_sql_mysql: Starting connect to MySQL server for #18
rlm_sql (sql): Connected new DB handle, #18
rlm_sql (sql): starting 19
rlm_sql (sql): Attempting to connect rlm_sql_mysql #19
rlm_sql_mysql: Starting connect to MySQL server for #19
rlm_sql (sql): Connected new DB handle, #19
rlm_sql (sql): starting 20
rlm_sql (sql): Attempting to connect rlm_sql_mysql #20
rlm_sql_mysql: Starting connect to MySQL server for #20
rlm_sql (sql): Connected new DB handle, #20
rlm_sql (sql): starting 21
rlm_sql (sql): Attempting to connect rlm_sql_mysql #21
rlm_sql_mysql: Starting connect to MySQL server for #21
rlm_sql (sql): Connected new DB handle, #21
rlm_sql (sql): starting 22
rlm_sql (sql): Attempting to connect rlm_sql_mysql #22
rlm_sql_mysql: Starting connect to MySQL server for #22
rlm_sql (sql): Connected new DB handle, #22
rlm_sql (sql): starting 23
rlm_sql (sql): Attempting to connect rlm_sql_mysql #23
rlm_sql_mysql: Starting connect to MySQL server for #23
rlm_sql (sql): Connected new DB handle, #23
rlm_sql (sql): starting 24
rlm_sql (sql): Attempting to connect rlm_sql_mysql #24
rlm_sql_mysql: Starting connect to MySQL server for #24
rlm_sql (sql): Connected new DB handle, #24
rlm_sql (sql): starting 25
rlm_sql (sql): Attempting to connect rlm_sql_mysql #25
rlm_sql_mysql: Starting connect to MySQL server for #25
rlm_sql (sql): Connected new DB handle, #25
rlm_sql (sql): starting 26
rlm_sql (sql): Attempting to connect rlm_sql_mysql #26
rlm_sql_mysql: Starting connect to MySQL server for #26
rlm_sql (sql): Connected new DB handle, #26
rlm_sql (sql): starting 27
rlm_sql (sql): Attempting to connect rlm_sql_mysql #27
rlm_sql_mysql: Starting connect to MySQL server for #27
rlm_sql (sql): Connected new DB handle, #27
rlm_sql (sql): starting 28
rlm_sql (sql): Attempting to connect rlm_sql_mysql #28
rlm_sql_mysql: Starting connect to MySQL server for #28
rlm_sql (sql): Connected new DB handle, #28
rlm_sql (sql): starting 29
rlm_sql (sql): Attempting to connect rlm_sql_mysql #29
rlm_sql_mysql: Starting connect to MySQL server for #29
rlm_sql (sql): Connected new DB handle, #29
rlm_sql (sql): starting 30
rlm_sql (sql): Attempting to connect rlm_sql_mysql #30
rlm_sql_mysql: Starting connect to MySQL server for #30
rlm_sql (sql): Connected new DB handle, #30
rlm_sql (sql): starting 31
rlm_sql (sql): Attempting to connect rlm_sql_mysql #31
rlm_sql_mysql: Starting connect to MySQL server for #31
rlm_sql (sql): Connected new DB handle, #31
Module: Linked to module rlm_attr_filter
Module: Instantiating module "attr_filter.accounting_response" from file /etc/raddb/modules/attr_filter
attr_filter attr_filter.accounting_response {
attrsfile = "/etc/raddb/attrs.accounting_response"
key = "%{User-Name}"
relaxed = no
}
Module: Checking session {...} for more modules to load
Module: Checking pre-proxy {...} for more modules to load
Module: Instantiating module "pre_proxy_log" from file /etc/raddb/modules/detail.log
detail pre_proxy_log {
detailfile = "/var/log/radius/radacct/%{Client-IP-Address}/pre-proxy-detail-%Y%m%d"
header = "%t"
detailperm = 384
dirperm = 493
locking = no
log_packet_header = no
}
Module: Checking post-proxy {...} for more modules to load
Module: Checking post-auth {...} for more modules to load
Module: Instantiating module "attr_filter.access_reject" from file /etc/raddb/modules/attr_filter
attr_filter attr_filter.access_reject {
attrsfile = "/etc/raddb/attrs.access_reject"
key = "%{User-Name}"
relaxed = no
}
} # modules
} # server
server moreshet.relay_server { # from file /etc/raddb/sites-enabled/moreshet.relay_relay_server
modules {
Module: Checking preacct {...} for more modules to load
Module: Instantiating module "moreshet.realm" from file /etc/raddb/modules/realm
realm moreshet.realm {
format = "prefix"
delimiter = "#"
ignore_default = no
ignore_null = no
}
Module: Checking accounting {...} for more modules to load
Module: Linked to module rlm_always
Module: Instantiating module "ok" from file /etc/raddb/modules/always
always ok {
rcode = "ok"
simulcount = 0
mpp = no
}
} # modules
} # server
server inner-tunnel { # from file /etc/raddb/sites-enabled/inner-tunnel
modules {
Module: Checking authenticate {...} for more modules to load
Module: Checking authorize {...} for more modules to load
Module: Checking session {...} for more modules to load
Module: Linked to module rlm_radutmp
Module: Instantiating module "radutmp" from file /etc/raddb/modules/radutmp
radutmp {
filename = "/var/log/radius/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
} # modules
} # server
thread pool {
start_servers = 5
max_servers = 32
min_spare_servers = 3
max_spare_servers = 10
max_requests_per_server = 0
cleanup_delay = 5
max_queue_size = 65536
}
Thread spawned new child 1. Total threads in pool: 1
Thread 2 waiting to be assigned a request
Thread spawned new child 2. Total threads in pool: 2
Thread spawned new child 3. Total threads in pool: 3
Thread spawned new child 4. Total threads in pool: 4
Thread spawned new child 5. Total threads in pool: 5
Thread pool initialized
radiusd: #### Opening IP addresses and Ports ####
listen {
type = "auth"
ipaddr = *
port = 0
Thread 3 waiting to be assigned a request
Thread 4 waiting to be assigned a request
Thread 5 waiting to be assigned a request
Thread 1 waiting to be assigned a request
Re-wait 2
Re-wait 5
Re-wait 4
Re-wait 3
Re-wait 1
Re-wait 2
Re-wait 1
Re-wait 5
Re-wait 4
}
listen {
type = "acct"
ipaddr = *
port = 0
Re-wait 2
Re-wait 1
Re-wait 3
Re-wait 5
Re-wait 2
Re-wait 1
Re-wait 4
Re-wait 5
}
listen {
type = "control"
listen {
socket = "/var/run/radiusd/radiusd.sock"
}
}
listen {
type = "detail"
listen {
filename = "/var/log/radius/radacct/moreshet.relay"
load_factor = 10
poll_interval = 1
retry_interval = 30
}
}
listen {
type = "auth"
ipaddr = 127.0.0.1
port = 18120
Re-wait 2
Re-wait 1
Re-wait 3
Re-wait 5
Re-wait 2
Re-wait 1
Re-wait 4
Re-wait 5
}
Re-wait 2
Re-wait 1
Re-wait 3
Re-wait 5
Re-wait 2
Re-wait 1
Re-wait 4
Re-wait 5
Re-wait 2
Re-wait 1
Re-wait 3
Re-wait 5
Re-wait 2
Re-wait 1
Re-wait 4
Re-wait 5
... adding new socket proxy address * port 37357
Re-wait 2
Re-wait 1
Re-wait 3
Re-wait 5
Re-wait 2
Re-wait 1
Re-wait 4
Re-wait 5
... adding new socket proxy address * port 56858
Re-wait 2
Re-wait 1
Re-wait 3
Re-wait 5
Listening on authentication address * port 1812
Listening on accounting address * port 1813
Listening on command file /var/run/radiusd/radiusd.sock
Listening on detail file /var/log/radius/radacct/moreshet.relay as server moreshet.relay_server
Detail listener /var/log/radius/radacct/moreshet.relay state unopened signalled 0 waiting 1.000000 sec
Listening on authentication address 127.0.0.1 port 18120 as server inner-tunnel
Listening on proxy address * port 1814
Waking up in 0.9 seconds.
Re-wait 4
Threads: total/active/spare threads = 5/0/5
Thread 2 got semaphore
Waking up in 0.9 seconds.
Thread 2 handling request 0, (1 handled so far)
[<thread>] # Executing section authorize from file /etc/raddb/sites-enabled/default
[<thread>] +- entering group authorize {...}
Amir.
2
1
Hi there!
We're trying to set up Freeradius wtih 8021x. Freeradius should query
a OpenLDAP server for autentication and check if the user belongs to
certain groups and return different VLAN IDs depending on that.
Unfortunately, we're having issues with the LDAP autentication part.
We only managed to get it to work with radtest. Example command:
$ radtest testuser4 testpass4 localhost 1812 testing123
But to accomplish that we had to uncomment these lines in sites-enabled/default:
# Uncomment it if you want to use ldap for authentication
#
# Note that this means "check plain-text password against
# the ldap database", which means that EAP won't work,
# as it does not supply a plain-text password.
#Auth-Type LDAP {
# ldap
#}
As the comment states, this works with radtest but not with EAP. We do
our tests with a Macbook Pro running Mac OS X 10.7.4.
If I comment the above lines again, freeradius rejects the request.
Passwords are stored as cleartext in ldap.
I'm looking at the ldap queries performed by freeradius it is only
checking if the user exists. No password check at all.
This the output of freeradius -X while using our test laptop:
-----8<------
FreeRADIUS Version 2.1.10, for host x86_64-pc-linux-gnu, built on Nov
14 2010 at 21:12:30
Copyright (C) 1999-2009 The FreeRADIUS server project and contributors.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
You may redistribute copies of FreeRADIUS under the terms of the
GNU General Public License v2.
Starting - reading configuration files ...
including configuration file /etc/freeradius/radiusd.conf
including configuration file /etc/freeradius/proxy.conf
including configuration file /etc/freeradius/clients.conf
including files in directory /etc/freeradius/modules/
including configuration file /etc/freeradius/modules/expr
including configuration file /etc/freeradius/modules/mac2ip
including configuration file /etc/freeradius/modules/passwd
including configuration file /etc/freeradius/modules/preprocess
including configuration file /etc/freeradius/modules/unix
including configuration file /etc/freeradius/modules/smbpasswd
including configuration file /etc/freeradius/modules/attr_rewrite
including configuration file /etc/freeradius/modules/radutmp
including configuration file /etc/freeradius/modules/chap
including configuration file /etc/freeradius/modules/linelog
including configuration file /etc/freeradius/modules/perl
including configuration file /etc/freeradius/modules/wimax
including configuration file /etc/freeradius/modules/otp
including configuration file /etc/freeradius/modules/detail
including configuration file /etc/freeradius/modules/ippool
including configuration file /etc/freeradius/modules/detail.example.com
including configuration file /etc/freeradius/modules/mschap
including configuration file /etc/freeradius/modules/sql_log
including configuration file /etc/freeradius/modules/pam
including configuration file /etc/freeradius/modules/mac2vlan
including configuration file /etc/freeradius/modules/detail.log
including configuration file /etc/freeradius/modules/logintime
including configuration file /etc/freeradius/modules/realm
including configuration file /etc/freeradius/modules/digest
including configuration file /etc/freeradius/modules/dynamic_clients
including configuration file /etc/freeradius/modules/acct_unique
including configuration file /etc/freeradius/modules/sradutmp
including configuration file /etc/freeradius/modules/ntlm_auth
including configuration file /etc/freeradius/modules/counter
including configuration file /etc/freeradius/modules/always
including configuration file /etc/freeradius/modules/ldap
including configuration file /etc/freeradius/modules/exec
including configuration file /etc/freeradius/modules/files
including configuration file /etc/freeradius/modules/inner-eap
including configuration file /etc/freeradius/modules/echo
including configuration file /etc/freeradius/modules/opendirectory
including configuration file /etc/freeradius/modules/krb5
including configuration file /etc/freeradius/modules/attr_filter
including configuration file /etc/freeradius/modules/smsotp
including configuration file /etc/freeradius/modules/cui
including configuration file /etc/freeradius/modules/pap
including configuration file /etc/freeradius/modules/sqlcounter_expire_on_login
including configuration file /etc/freeradius/modules/expiration
including configuration file /etc/freeradius/modules/etc_group
including configuration file /etc/freeradius/modules/checkval
including configuration file /etc/freeradius/modules/policy
including configuration file /etc/freeradius/eap.conf
including configuration file /etc/freeradius/policy.conf
including files in directory /etc/freeradius/sites-enabled/
including configuration file /etc/freeradius/sites-enabled/default
including configuration file /etc/freeradius/sites-enabled/inner-tunnel
main {
user = "freerad"
group = "freerad"
allow_core_dumps = no
}
including dictionary file /etc/freeradius/dictionary
main {
prefix = "/usr"
localstatedir = "/var"
logdir = "/var/log/freeradius"
libdir = "/usr/lib/freeradius"
radacctdir = "/var/log/freeradius/radacct"
hostname_lookups = no
max_request_time = 30
cleanup_delay = 5
max_requests = 1024
pidfile = "/var/run/freeradius/freeradius.pid"
checkrad = "/usr/sbin/checkrad"
debug_level = 0
proxy_requests = yes
log {
stripped_names = no
auth = no
auth_badpass = no
auth_goodpass = no
}
security {
max_attributes = 200
reject_delay = 1
status_server = yes
}
}
radiusd: #### Loading Realms and Home Servers ####
proxy server {
retry_delay = 5
retry_count = 3
default_fallback = no
dead_time = 120
wake_all_if_all_dead = no
}
home_server localhost {
ipaddr = 127.0.0.1
port = 1812
type = "auth"
secret = "testing123"
response_window = 20
max_outstanding = 65536
require_message_authenticator = yes
zombie_period = 40
status_check = "status-server"
ping_interval = 30
check_interval = 30
num_answers_to_alive = 3
num_pings_to_alive = 3
revive_interval = 120
status_check_timeout = 4
irt = 2
mrt = 16
mrc = 5
mrd = 30
}
home_server_pool my_auth_failover {
type = fail-over
home_server = localhost
}
realm example.com {
auth_pool = my_auth_failover
}
realm LOCAL {
}
radiusd: #### Loading Clients ####
client localhost {
ipaddr = 127.0.0.1
require_message_authenticator = no
secret = "testing123"
nastype = "other"
}
client 194.236.60.0/24 {
require_message_authenticator = no
secret = "somesecret"
}
radiusd: #### Instantiating modules ####
instantiate {
Module: Linked to module rlm_exec
Module: Instantiating module "exec" from file /etc/freeradius/modules/exec
exec {
wait = no
input_pairs = "request"
shell_escape = yes
}
Module: Linked to module rlm_expr
Module: Instantiating module "expr" from file /etc/freeradius/modules/expr
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_unix
Module: Instantiating module "unix" from file /etc/freeradius/modules/unix
unix {
radwtmp = "/var/log/freeradius/radwtmp"
}
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 = "Password: "
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
CA_path = "/etc/freeradius/certs"
pem_file_type = yes
private_key_file = "/etc/freeradius/certs/server.key"
certificate_file = "/etc/freeradius/certs/server.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"
make_cert_command = "/etc/freeradius/certs/bootstrap"
cache {
enable = no
lifetime = 24
max_entries = 255
}
verify {
}
}
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/users"
acctusersfile = "/etc/freeradius/acct_users"
preproxy_usersfile = "/etc/freeradius/preproxy_users"
compat = "no"
}
Module: Linked to module rlm_ldap
Module: Instantiating module "ldap" from file /etc/freeradius/modules/ldap
ldap {
server = "haldap.int.sto.spotify.net"
port = 389
password = "somepasswd"
identity = "uid=freeradius_ldap,cn=users,dc=host,dc=in,dc=a,dc=domain,dc=net"
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=host,DC=in,DC=a,DC=domain,DC=net"
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=apple-group)(memberUid=%{User-Name}))"
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: Over-riding set_auth_type, as there is no module ldap listed
in the "authenticate" section.
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: 0xa9c8f0
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: Linked to module rlm_digest
Module: Instantiating module "digest" from file /etc/freeradius/modules/digest
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
}
Module: Instantiating module "attr_filter.accounting_response" from
file /etc/freeradius/modules/attr_filter
attr_filter attr_filter.accounting_response {
attrsfile = "/etc/freeradius/attrs.accounting_response"
key = "%{User-Name}"
}
Module: Checking session {...} for more modules to load
Module: Checking post-proxy {...} for more modules to load
Module: Checking post-auth {...} for more modules to load
} # modules
} # server
radiusd: #### Opening IP addresses and Ports ####
listen {
type = "auth"
ipaddr = *
port = 0
}
listen {
type = "acct"
ipaddr = *
port = 0
}
listen {
type = "auth"
ipaddr = 127.0.0.1
port = 18120
}
Listening on authentication address * port 1812
Listening on accounting address * port 1813
Listening on authentication address 127.0.0.1 port 18120 as server inner-tunnel
Listening on proxy address * port 1814
Ready to process requests.
rad_recv: Access-Request packet from host 194.236.60.6 port 1438,
id=25, length=217
Framed-MTU = 1480
NAS-IP-Address = 194.236.60.6
NAS-Identifier = "access-se1-302-001"
User-Name = "testuser4"
Service-Type = Framed-User
Framed-Protocol = PPP
NAS-Port = 20
NAS-Port-Type = Ethernet
NAS-Port-Id = "A20"
Called-Station-Id = "00-1f-28-0c-49-00"
Calling-Station-Id = "c8-bc-c8-9b-4b-d8"
Connect-Info = "CONNECT Ethernet 1000Mbps Full duplex"
Tunnel-Type:0 = VLAN
Tunnel-Medium-Type:0 = IEEE-802
Tunnel-Private-Group-Id:0 = "60"
EAP-Message = 0x028f000d016672616e63657363
Message-Authenticator = 0x0db21bd2c7b5dcf5562053f41f4b9e2b
# Executing section authorize from file /etc/freeradius/sites-enabled/default
+- entering group authorize {...}
++[preprocess] returns ok
++[chap] returns noop
++[mschap] returns noop
++[digest] returns noop
[suffix] No '@' in User-Name = "testuser4", looking up realm NULL
[suffix] No such realm "NULL"
++[suffix] returns noop
[eap] EAP packet type response id 143 length 13
[eap] No EAP Start, assuming it's an on-going EAP conversation
++[eap] returns updated
[files] users: Matched entry DEFAULT at line 172
++[files] returns ok
[ldap] performing user authorization for testuser4
[ldap] expand: %{Stripped-User-Name} ->
[ldap] ... expanding second conditional
[ldap] expand: %{User-Name} -> testuser4
[ldap] expand: (uid=%{%{Stripped-User-Name}:-%{User-Name}}) -> (uid=testuser4)
[ldap] expand: DC=host,DC=in,DC=a,DC=domain,DC=net ->
DC=host,DC=in,DC=a,DC=domain,DC=net
[ldap] ldap_get_conn: Checking Id: 0
[ldap] ldap_get_conn: Got Id: 0
[ldap] attempting LDAP reconnection
[ldap] (re)connect to haldap.int.sto.spotify.net:389, authentication 0
[ldap] bind as
uid=freeradius_ldap,cn=users,dc=host,dc=in,dc=a,dc=domain,dc=net/somepasswd
to haldap.int.sto.spotify.net:389
[ldap] waiting for bind result ...
[ldap] Bind was successful
[ldap] performing search in DC=host,DC=in,DC=a,DC=domain,DC=net,
with filter (uid=testuser4)
[ldap] No default NMAS login sequence
[ldap] looking for check items in directory...
[ldap] userPassword -> Password-With-Header == "{SASL}testuser4(a)SPOTIFY.NET"
[ldap] looking for reply items in directory...
[ldap] user testuser4 authorized to use remote access
[ldap] ldap_release_conn: Release Id: 0
++[ldap] returns ok
++[expiration] returns noop
++[logintime] returns noop
[pap] Found unknown header {{SASL}}: Not doing anything
[pap] WARNING: Auth-Type already set. Not setting to PAP
++[pap] returns noop
Found Auth-Type = EAP
# Executing group from file /etc/freeradius/sites-enabled/default
+- entering group authenticate {...}
[eap] EAP Identity
[eap] processing type md5
rlm_eap_md5: Issuing Challenge
++[eap] returns handled
Sending Access-Challenge of id 25 to 194.236.60.6 port 1438
Framed-Protocol = PPP
Framed-Compression = Van-Jacobson-TCP-IP
EAP-Message = 0x019000160410f44fc318a9b15bdded328eeb09dc194f
Message-Authenticator = 0x00000000000000000000000000000000
State = 0x21c973372159771a4c8d5d9438e5c8c8
Finished request 0.
Going to the next request
Waking up in 4.9 seconds.
rad_recv: Access-Request packet from host 194.236.60.6 port 1438,
id=26, length=228
Framed-MTU = 1480
NAS-IP-Address = 194.236.60.6
NAS-Identifier = "access-se1-302-001"
User-Name = "testuser4"
Service-Type = Framed-User
Framed-Protocol = PPP
NAS-Port = 20
NAS-Port-Type = Ethernet
NAS-Port-Id = "A20"
Called-Station-Id = "00-1f-28-0c-49-00"
Calling-Station-Id = "c8-bc-c8-9b-4b-d8"
Connect-Info = "CONNECT Ethernet 1000Mbps Full duplex"
Tunnel-Type:0 = VLAN
Tunnel-Medium-Type:0 = IEEE-802
Tunnel-Private-Group-Id:0 = "60"
State = 0x21c973372159771a4c8d5d9438e5c8c8
EAP-Message = 0x029000060319
Message-Authenticator = 0xe8bd2b07f3fd0ac471adac170c24f681
# Executing section authorize from file /etc/freeradius/sites-enabled/default
+- entering group authorize {...}
++[preprocess] returns ok
++[chap] returns noop
++[mschap] returns noop
++[digest] returns noop
[suffix] No '@' in User-Name = "testuser4", looking up realm NULL
[suffix] No such realm "NULL"
++[suffix] returns noop
[eap] EAP packet type response id 144 length 6
[eap] No EAP Start, assuming it's an on-going EAP conversation
++[eap] returns updated
[files] users: Matched entry DEFAULT at line 172
++[files] returns ok
[ldap] performing user authorization for testuser4
[ldap] expand: %{Stripped-User-Name} ->
[ldap] ... expanding second conditional
[ldap] expand: %{User-Name} -> testuser4
[ldap] expand: (uid=%{%{Stripped-User-Name}:-%{User-Name}}) -> (uid=testuser4)
[ldap] expand: DC=host,DC=in,DC=a,DC=domain,DC=net ->
DC=host,DC=in,DC=a,DC=domain,DC=net
[ldap] ldap_get_conn: Checking Id: 0
[ldap] ldap_get_conn: Got Id: 0
[ldap] performing search in DC=host,DC=in,DC=a,DC=domain,DC=net,
with filter (uid=testuser4)
[ldap] No default NMAS login sequence
[ldap] looking for check items in directory...
[ldap] userPassword -> Password-With-Header == "{SASL}testuser4(a)SPOTIFY.NET"
[ldap] looking for reply items in directory...
[ldap] user testuser4 authorized to use remote access
[ldap] ldap_release_conn: Release Id: 0
++[ldap] returns ok
++[expiration] returns noop
++[logintime] returns noop
[pap] Found unknown header {{SASL}}: Not doing anything
[pap] WARNING: Auth-Type already set. Not setting to PAP
++[pap] returns noop
Found Auth-Type = EAP
# Executing group from file /etc/freeradius/sites-enabled/default
+- entering group authenticate {...}
[eap] Request found, released from the list
[eap] EAP NAK
[eap] EAP-NAK asked for EAP-Type/peap
[eap] processing type tls
[tls] Initiate
[tls] Start returned 1
++[eap] returns handled
Sending Access-Challenge of id 26 to 194.236.60.6 port 1438
Framed-Protocol = PPP
Framed-Compression = Van-Jacobson-TCP-IP
EAP-Message = 0x019100061920
Message-Authenticator = 0x00000000000000000000000000000000
State = 0x21c9733720586a1a4c8d5d9438e5c8c8
Finished request 1.
Going to the next request
Waking up in 4.9 seconds.
rad_recv: Access-Request packet from host 194.236.60.6 port 1438,
id=27, length=354
Framed-MTU = 1480
NAS-IP-Address = 194.236.60.6
NAS-Identifier = "access-se1-302-001"
User-Name = "testuser4"
Service-Type = Framed-User
Framed-Protocol = PPP
NAS-Port = 20
NAS-Port-Type = Ethernet
NAS-Port-Id = "A20"
Called-Station-Id = "00-1f-28-0c-49-00"
Calling-Station-Id = "c8-bc-c8-9b-4b-d8"
Connect-Info = "CONNECT Ethernet 1000Mbps Full duplex"
Tunnel-Type:0 = VLAN
Tunnel-Medium-Type:0 = IEEE-802
Tunnel-Private-Group-Id:0 = "60"
State = 0x21c9733720586a1a4c8d5d9438e5c8c8
EAP-Message = 0x0291008419800000007a16030100750100007103015006ea1a6a261693e45d56951bdf2ab629d1cdbb0cfd14babcfc0660e52a659c000036c00ac009c007c008c013c014c011c012c004c005c002c003c00ec00fc00cc00d002f000500040035000a00320033003800390016001301000012000a00080006001700180019000b00020100
Message-Authenticator = 0x4ba49e5403066e3dec33fd466957677c
# Executing section authorize from file /etc/freeradius/sites-enabled/default
+- entering group authorize {...}
++[preprocess] returns ok
++[chap] returns noop
++[mschap] returns noop
++[digest] returns noop
[suffix] No '@' in User-Name = "testuser4", looking up realm NULL
[suffix] No such realm "NULL"
++[suffix] returns noop
[eap] EAP packet type response id 145 length 132
[eap] Continuing tunnel setup.
++[eap] returns ok
Found Auth-Type = EAP
# Executing group from file /etc/freeradius/sites-enabled/default
+- entering group authenticate {...}
[eap] Request found, released from the list
[eap] EAP/peap
[eap] processing type peap
[peap] processing EAP-TLS
TLS Length 122
[peap] Length Included
[peap] eaptls_verify returned 11
[peap] (other): before/accept initialization
[peap] TLS_accept: before/accept initialization
[peap] <<< TLS 1.0 Handshake [length 0075], ClientHello
[peap] TLS_accept: SSLv3 read client hello A
[peap] >>> TLS 1.0 Handshake [length 002a], ServerHello
[peap] TLS_accept: SSLv3 write server hello A
[peap] >>> TLS 1.0 Handshake [length 02d4], Certificate
[peap] TLS_accept: SSLv3 write certificate A
[peap] >>> TLS 1.0 Handshake [length 0004], ServerHelloDone
[peap] TLS_accept: SSLv3 write server done A
[peap] TLS_accept: SSLv3 flush data
[peap] TLS_accept: Need to read more data: SSLv3 read client certificate A
In SSL Handshake Phase
In SSL Accept mode
[peap] eaptls_process returned 13
[peap] EAPTLS_HANDLED
++[eap] returns handled
Sending Access-Challenge of id 27 to 194.236.60.6 port 1438
EAP-Message = 0x019203171900160301002a0200002603015006ea1a06a6cd5b8af0f414c9e86819ac469d68b02fa3d88c852b5f7f08bea400002f0016030102d40b0002d00002cd0002ca308202c6308201ae020900a997f795878568eb300d06092a864886f70d01010505003025312330210603550403131a71756172747a2e696e742e73746f2e73706f746966792e6e6574301e170d3132303630383039333335305a170d3232303630363039333335305a3025312330210603550403131a71756172747a2e696e742e73746f2e73706f746966792e6e657430820122300d06092a864886f70d01010105000382010f003082010a0282010100abc2aea6f96cc6ae
EAP-Message = 0x3b760e32d33279a1e4948d6c813a647fc1c8bf08d7d8497965646def76a1f046e934568a868e55fba093efc62337515e82217c80f59eb89b2261c4347d31220e7433040228dc1793c3c1a88e9c8903ffad4f9ca946099a96e145ad98eee738ef3bd126c973881f4a0ebcf52405cd7f70d564ade956c8a024bd849e1bb64f503b1b3cd6c5771540f44c962ed6c495436f096630a1a3f8ecaaebcdea993b1746a4c8b62cc89ddd137a2873881d8d14f2e5315e579bbb2d93447e9dadb8726550a4c02b0c0e79389c97c24b3efeaff7b7dadb9c9485760a18ae65dac956d9530ca09ff4df9a2cad48b2f55a08a88fa566873e5bca38369c54610203010001
EAP-Message = 0x300d06092a864886f70d010105050003820101000cb643b97a5e5969f44ae07b7115ccd3f81dbf46d23f58cdb970bf5bebb74f29d65246f3819f153d67fac184ba7a9d405ecd99d137af42fae91c327434eebb1c3db59a35f54f32d5587ca1b9ae7bcae562f443df78000ad4d4ee70d50b95bb7822287fcddfb72b0ceb7b29ffa4811297e996770bd291d59be103a3c56aff3a1e5b85bd1c686f41c8c757fa53caac4782efed0bd204fb262ffafc93f5a4195f764496d845eb2bd7e8dbabbf46cc50b55d66ba188681c391ce7736400f1c1f61a8366b7b6d1d050694fd3fb2e20fc41a68ffc81de96fec0f3fef35cfebc35bb37b08df98a36243ecc99d
EAP-Message = 0x4502687e7035107baa4454b9fc8a3279edd794635ce6ba16030100040e000000
Message-Authenticator = 0x00000000000000000000000000000000
State = 0x21c97337235b6a1a4c8d5d9438e5c8c8
Finished request 2.
Going to the next request
Waking up in 4.9 seconds.
rad_recv: Access-Request packet from host 194.236.60.6 port 1438,
id=28, length=560
Framed-MTU = 1480
NAS-IP-Address = 194.236.60.6
NAS-Identifier = "access-se1-302-001"
User-Name = "testuser4"
Service-Type = Framed-User
Framed-Protocol = PPP
NAS-Port = 20
NAS-Port-Type = Ethernet
NAS-Port-Id = "A20"
Called-Station-Id = "00-1f-28-0c-49-00"
Calling-Station-Id = "c8-bc-c8-9b-4b-d8"
Connect-Info = "CONNECT Ethernet 1000Mbps Full duplex"
Tunnel-Type:0 = VLAN
Tunnel-Medium-Type:0 = IEEE-802
Tunnel-Private-Group-Id:0 = "60"
State = 0x21c97337235b6a1a4c8d5d9438e5c8c8
EAP-Message = 0x02920150198000000146160301010610000102010005a283f8370a6f39d45d32af199ff5688c81224dabde4db0832821c9c9c3e92a8f93fd4dc57eaf6e654a2064ad3984128220f71ac254c675167c19f507c12f61dd6856631b2e921b594eddc6100d91fbdd5da88544dc6fdaff60bcef55ff9e35e4ea4e6bfc5680a9f7fd3cedb6cbd1f24d4c0db4cd0796c20f7bfb50b8b5346888830518430543e7e70a3bf5e4d30ea1c983331fb911cb863a906b7d7edd7c73a979e7d825b6f80a358e11af0c3830606a0d546c644764bb1ed31f9689b01ff205da7a2f2574a3875acae3d0dfcc5247c42c8a4787ddf533b4f1cde23cadf8997d9fe3936a2b83e1
EAP-Message = 0xbec1e583d51e15e0775799fb2fedc91e30465f04f48e733c1403010001011603010030a3f977700de3d38fda560ec1f9f6ea8c2e1322df84d7ce1a060c7bc3b35631beeba2998c1a409eee6b7cb7ee558b343a
Message-Authenticator = 0xd711fe582d9b5cd194ed166907f68314
# Executing section authorize from file /etc/freeradius/sites-enabled/default
+- entering group authorize {...}
++[preprocess] returns ok
++[chap] returns noop
++[mschap] returns noop
++[digest] returns noop
[suffix] No '@' in User-Name = "testuser4", looking up realm NULL
[suffix] No such realm "NULL"
++[suffix] returns noop
[eap] EAP packet type response id 146 length 253
[eap] Continuing tunnel setup.
++[eap] returns ok
Found Auth-Type = EAP
# Executing group from file /etc/freeradius/sites-enabled/default
+- entering group authenticate {...}
[eap] Request found, released from the list
[eap] EAP/peap
[eap] processing type peap
[peap] processing EAP-TLS
TLS Length 326
[peap] Length Included
[peap] eaptls_verify returned 11
[peap] <<< TLS 1.0 Handshake [length 0106], ClientKeyExchange
[peap] TLS_accept: SSLv3 read client key exchange A
[peap] <<< TLS 1.0 ChangeCipherSpec [length 0001]
[peap] <<< TLS 1.0 Handshake [length 0010], Finished
[peap] TLS_accept: SSLv3 read finished A
[peap] >>> TLS 1.0 ChangeCipherSpec [length 0001]
[peap] TLS_accept: SSLv3 write change cipher spec A
[peap] >>> TLS 1.0 Handshake [length 0010], Finished
[peap] TLS_accept: SSLv3 write finished A
[peap] TLS_accept: SSLv3 flush data
[peap] (other): SSL negotiation finished successfully
SSL Connection Established
[peap] eaptls_process returned 13
[peap] EAPTLS_HANDLED
++[eap] returns handled
Sending Access-Challenge of id 28 to 194.236.60.6 port 1438
EAP-Message = 0x01930041190014030100010116030100308694c16e1732bbd663ab1fec150c4fff3d6d83ab7b30a81cfe129511de7942d8d8027d2b881bbbb51027216138c147cd
Message-Authenticator = 0x00000000000000000000000000000000
State = 0x21c97337225a6a1a4c8d5d9438e5c8c8
Finished request 3.
Going to the next request
Waking up in 4.9 seconds.
rad_recv: Access-Request packet from host 194.236.60.6 port 1438,
id=29, length=228
Framed-MTU = 1480
NAS-IP-Address = 194.236.60.6
NAS-Identifier = "access-se1-302-001"
User-Name = "testuser4"
Service-Type = Framed-User
Framed-Protocol = PPP
NAS-Port = 20
NAS-Port-Type = Ethernet
NAS-Port-Id = "A20"
Called-Station-Id = "00-1f-28-0c-49-00"
Calling-Station-Id = "c8-bc-c8-9b-4b-d8"
Connect-Info = "CONNECT Ethernet 1000Mbps Full duplex"
Tunnel-Type:0 = VLAN
Tunnel-Medium-Type:0 = IEEE-802
Tunnel-Private-Group-Id:0 = "60"
State = 0x21c97337225a6a1a4c8d5d9438e5c8c8
EAP-Message = 0x029300061900
Message-Authenticator = 0x4c81d4f9c40214c6153e062989a8833c
# Executing section authorize from file /etc/freeradius/sites-enabled/default
+- entering group authorize {...}
++[preprocess] returns ok
++[chap] returns noop
++[mschap] returns noop
++[digest] returns noop
[suffix] No '@' in User-Name = "testuser4", looking up realm NULL
[suffix] No such realm "NULL"
++[suffix] returns noop
[eap] EAP packet type response id 147 length 6
[eap] Continuing tunnel setup.
++[eap] returns ok
Found Auth-Type = EAP
# Executing group from file /etc/freeradius/sites-enabled/default
+- entering group authenticate {...}
[eap] Request found, released from the list
[eap] EAP/peap
[eap] processing type peap
[peap] processing EAP-TLS
[peap] Received TLS ACK
[peap] ACK handshake is finished
[peap] eaptls_verify returned 3
[peap] eaptls_process returned 3
[peap] EAPTLS_SUCCESS
[peap] Session established. Decoding tunneled attributes.
[peap] Peap state TUNNEL ESTABLISHED
++[eap] returns handled
Sending Access-Challenge of id 29 to 194.236.60.6 port 1438
EAP-Message = 0x0194002b19001703010020b9116214add324abd801cacf1ab59a6b27a3fee99b7d812b7caa85b899f969cc
Message-Authenticator = 0x00000000000000000000000000000000
State = 0x21c97337255d6a1a4c8d5d9438e5c8c8
Finished request 4.
Going to the next request
Waking up in 4.9 seconds.
rad_recv: Access-Request packet from host 194.236.60.6 port 1438,
id=30, length=265
Framed-MTU = 1480
NAS-IP-Address = 194.236.60.6
NAS-Identifier = "access-se1-302-001"
User-Name = "testuser4"
Service-Type = Framed-User
Framed-Protocol = PPP
NAS-Port = 20
NAS-Port-Type = Ethernet
NAS-Port-Id = "A20"
Called-Station-Id = "00-1f-28-0c-49-00"
Calling-Station-Id = "c8-bc-c8-9b-4b-d8"
Connect-Info = "CONNECT Ethernet 1000Mbps Full duplex"
Tunnel-Type:0 = VLAN
Tunnel-Medium-Type:0 = IEEE-802
Tunnel-Private-Group-Id:0 = "60"
State = 0x21c97337255d6a1a4c8d5d9438e5c8c8
EAP-Message = 0x0294002b19001703010020416f52107037b88b1de08c35b2dd1218afe123747d53e5f9643b47a2da3a69ce
Message-Authenticator = 0xc68800a0978696090a2eb9bb1e0003e7
# Executing section authorize from file /etc/freeradius/sites-enabled/default
+- entering group authorize {...}
++[preprocess] returns ok
++[chap] returns noop
++[mschap] returns noop
++[digest] returns noop
[suffix] No '@' in User-Name = "testuser4", looking up realm NULL
[suffix] No such realm "NULL"
++[suffix] returns noop
[eap] EAP packet type response id 148 length 43
[eap] Continuing tunnel setup.
++[eap] returns ok
Found Auth-Type = EAP
# Executing group from file /etc/freeradius/sites-enabled/default
+- entering group authenticate {...}
[eap] Request found, released from the list
[eap] EAP/peap
[eap] processing type peap
[peap] processing EAP-TLS
[peap] eaptls_verify returned 7
[peap] Done initial handshake
[peap] eaptls_process returned 7
[peap] EAPTLS_OK
[peap] Session established. Decoding tunneled attributes.
[peap] Peap state WAITING FOR INNER IDENTITY
[peap] Identity - testuser4
[peap] Got inner identity 'testuser4'
[peap] Setting default EAP type for tunneled EAP session.
[peap] Got tunneled request
EAP-Message = 0x0294000d016672616e63657363
server {
PEAP: Setting User-Name to testuser4
Sending tunneled request
EAP-Message = 0x0294000d016672616e63657363
FreeRADIUS-Proxied-To = 127.0.0.1
User-Name = "testuser4"
server inner-tunnel {
# Executing section authorize from file
/etc/freeradius/sites-enabled/inner-tunnel
+- entering group authorize {...}
++[chap] returns noop
++[mschap] returns noop
[suffix] No '@' in User-Name = "testuser4", looking up realm NULL
[suffix] No such realm "NULL"
++[suffix] returns noop
++[control] returns noop
[eap] EAP packet type response id 148 length 13
[eap] No EAP Start, assuming it's an on-going EAP conversation
++[eap] returns updated
++[files] returns noop
[ldap] performing user authorization for testuser4
[ldap] expand: %{Stripped-User-Name} ->
[ldap] ... expanding second conditional
[ldap] expand: %{User-Name} -> testuser4
[ldap] expand: (uid=%{%{Stripped-User-Name}:-%{User-Name}}) -> (uid=testuser4)
[ldap] expand: DC=host,DC=in,DC=a,DC=domain,DC=net ->
DC=host,DC=in,DC=a,DC=domain,DC=net
[ldap] ldap_get_conn: Checking Id: 0
[ldap] ldap_get_conn: Got Id: 0
[ldap] performing search in DC=host,DC=in,DC=a,DC=domain,DC=net,
with filter (uid=testuser4)
[ldap] No default NMAS login sequence
[ldap] looking for check items in directory...
[ldap] userPassword -> Password-With-Header == "{SASL}testuser4(a)SPOTIFY.NET"
[ldap] looking for reply items in directory...
[ldap] user testuser4 authorized to use remote access
[ldap] ldap_release_conn: Release Id: 0
++[ldap] returns ok
++[expiration] returns noop
++[logintime] returns noop
[pap] Found unknown header {{SASL}}: Not doing anything
[pap] WARNING: Auth-Type already set. Not setting to PAP
++[pap] returns noop
Found Auth-Type = EAP
# Executing group from file /etc/freeradius/sites-enabled/inner-tunnel
+- entering group authenticate {...}
[eap] EAP Identity
[eap] processing type mschapv2
rlm_eap_mschapv2: Issuing Challenge
++[eap] returns handled
} # server inner-tunnel
[peap] Got tunneled reply code 11
EAP-Message = 0x019500221a0195001d10c0bdfc0144d79a88c5213c546a9236ef6672616e63657363
Message-Authenticator = 0x00000000000000000000000000000000
State = 0x69fe7606696b6c295226f098739615c2
[peap] Got tunneled reply RADIUS code 11
EAP-Message = 0x019500221a0195001d10c0bdfc0144d79a88c5213c546a9236ef6672616e63657363
Message-Authenticator = 0x00000000000000000000000000000000
State = 0x69fe7606696b6c295226f098739615c2
[peap] Got tunneled Access-Challenge
++[eap] returns handled
Sending Access-Challenge of id 30 to 194.236.60.6 port 1438
EAP-Message = 0x0195004b190017030100408b0708d439e500424334ff22e1d99fc72c03cf545e7da4d98e32b7717d8fdd01549051a25f1cbcb12acf0b2dd2cc1af0fd2ab8d3ce69214c4049145dbe89cb44
Message-Authenticator = 0x00000000000000000000000000000000
State = 0x21c97337245c6a1a4c8d5d9438e5c8c8
Finished request 5.
Going to the next request
Waking up in 4.9 seconds.
rad_recv: Access-Request packet from host 194.236.60.6 port 1438,
id=31, length=329
Framed-MTU = 1480
NAS-IP-Address = 194.236.60.6
NAS-Identifier = "access-se1-302-001"
User-Name = "testuser4"
Service-Type = Framed-User
Framed-Protocol = PPP
NAS-Port = 20
NAS-Port-Type = Ethernet
NAS-Port-Id = "A20"
Called-Station-Id = "00-1f-28-0c-49-00"
Calling-Station-Id = "c8-bc-c8-9b-4b-d8"
Connect-Info = "CONNECT Ethernet 1000Mbps Full duplex"
Tunnel-Type:0 = VLAN
Tunnel-Medium-Type:0 = IEEE-802
Tunnel-Private-Group-Id:0 = "60"
State = 0x21c97337245c6a1a4c8d5d9438e5c8c8
EAP-Message = 0x0295006b1900170301006097d8cdcd8a34cf3194a9fda7e3f39151d5b26ac29afaa5f077339820e6994962f0b14366db12b799dc419cc60ec47d13238ce2837abf6990e036dbbd66f322062bf87b3607cf70a916944e77f769b8098ed23210300c9ff5e711a60d271bf4f8
Message-Authenticator = 0x9a72d15df4f23c4691c9359f405c2176
# Executing section authorize from file /etc/freeradius/sites-enabled/default
+- entering group authorize {...}
++[preprocess] returns ok
++[chap] returns noop
++[mschap] returns noop
++[digest] returns noop
[suffix] No '@' in User-Name = "testuser4", looking up realm NULL
[suffix] No such realm "NULL"
++[suffix] returns noop
[eap] EAP packet type response id 149 length 107
[eap] Continuing tunnel setup.
++[eap] returns ok
Found Auth-Type = EAP
# Executing group from file /etc/freeradius/sites-enabled/default
+- entering group authenticate {...}
[eap] Request found, released from the list
[eap] EAP/peap
[eap] processing type peap
[peap] processing EAP-TLS
[peap] eaptls_verify returned 7
[peap] Done initial handshake
[peap] eaptls_process returned 7
[peap] EAPTLS_OK
[peap] Session established. Decoding tunneled attributes.
[peap] Peap state phase2
[peap] EAP type mschapv2
[peap] Got tunneled request
EAP-Message = 0x029500431a0295003e31e585188413185f32ca1a4e41c24add86000000000000000012a75f668e30a221718c00e5c7b321033f96ff40bf5b688e006672616e63657363
server {
PEAP: Setting User-Name to testuser4
Sending tunneled request
EAP-Message = 0x029500431a0295003e31e585188413185f32ca1a4e41c24add86000000000000000012a75f668e30a221718c00e5c7b321033f96ff40bf5b688e006672616e63657363
FreeRADIUS-Proxied-To = 127.0.0.1
User-Name = "testuser4"
State = 0x69fe7606696b6c295226f098739615c2
server inner-tunnel {
# Executing section authorize from file
/etc/freeradius/sites-enabled/inner-tunnel
+- entering group authorize {...}
++[chap] returns noop
++[mschap] returns noop
[suffix] No '@' in User-Name = "testuser4", looking up realm NULL
[suffix] No such realm "NULL"
++[suffix] returns noop
++[control] returns noop
[eap] EAP packet type response id 149 length 67
[eap] No EAP Start, assuming it's an on-going EAP conversation
++[eap] returns updated
++[files] returns noop
[ldap] performing user authorization for testuser4
[ldap] expand: %{Stripped-User-Name} ->
[ldap] ... expanding second conditional
[ldap] expand: %{User-Name} -> testuser4
[ldap] expand: (uid=%{%{Stripped-User-Name}:-%{User-Name}}) -> (uid=testuser4)
[ldap] expand: DC=host,DC=in,DC=a,DC=domain,DC=net ->
DC=host,DC=in,DC=a,DC=domain,DC=net
[ldap] ldap_get_conn: Checking Id: 0
[ldap] ldap_get_conn: Got Id: 0
[ldap] performing search in DC=host,DC=in,DC=a,DC=domain,DC=net,
with filter (uid=testuser4)
[ldap] No default NMAS login sequence
[ldap] looking for check items in directory...
[ldap] userPassword -> Password-With-Header == "{SASL}testuser4(a)SPOTIFY.NET"
[ldap] looking for reply items in directory...
[ldap] user testuser4 authorized to use remote access
[ldap] ldap_release_conn: Release Id: 0
++[ldap] returns ok
++[expiration] returns noop
++[logintime] returns noop
[pap] Found unknown header {{SASL}}: Not doing anything
[pap] WARNING: Auth-Type already set. Not setting to PAP
++[pap] returns noop
Found Auth-Type = EAP
# Executing group from file /etc/freeradius/sites-enabled/inner-tunnel
+- entering group authenticate {...}
[eap] Request found, released from the list
[eap] EAP/mschapv2
[eap] processing type mschapv2
[mschapv2] # Executing group from file
/etc/freeradius/sites-enabled/inner-tunnel
[mschapv2] +- entering group MS-CHAP {...}
[mschap] No Cleartext-Password configured. Cannot create LM-Password.
[mschap] No Cleartext-Password configured. Cannot create NT-Password.
[mschap] Creating challenge hash with username: testuser4
[mschap] Told to do MS-CHAPv2 for testuser4 with NT-Password
[mschap] FAILED: No NT/LM-Password. Cannot perform authentication.
[mschap] FAILED: MS-CHAP2-Response is incorrect
++[mschap] returns reject
[eap] Freeing handler
++[eap] returns reject
Failed to authenticate the user.
} # server inner-tunnel
[peap] Got tunneled reply code 3
MS-CHAP-Error = "\225E=691 R=1"
EAP-Message = 0x04950004
Message-Authenticator = 0x00000000000000000000000000000000
[peap] Got tunneled reply RADIUS code 3
MS-CHAP-Error = "\225E=691 R=1"
EAP-Message = 0x04950004
Message-Authenticator = 0x00000000000000000000000000000000
[peap] Tunneled authentication was rejected.
[peap] FAILURE
++[eap] returns handled
Sending Access-Challenge of id 31 to 194.236.60.6 port 1438
EAP-Message = 0x0196002b19001703010020d212e9083be574e3b8fd376ca128702a1f3fa8c3788742fdc1af6659b4ee82aa
Message-Authenticator = 0x00000000000000000000000000000000
State = 0x21c97337275f6a1a4c8d5d9438e5c8c8
Finished request 6.
Going to the next request
Waking up in 4.9 seconds.
rad_recv: Access-Request packet from host 194.236.60.6 port 1438,
id=32, length=265
Framed-MTU = 1480
NAS-IP-Address = 194.236.60.6
NAS-Identifier = "access-se1-302-001"
User-Name = "testuser4"
Service-Type = Framed-User
Framed-Protocol = PPP
NAS-Port = 20
NAS-Port-Type = Ethernet
NAS-Port-Id = "A20"
Called-Station-Id = "00-1f-28-0c-49-00"
Calling-Station-Id = "c8-bc-c8-9b-4b-d8"
Connect-Info = "CONNECT Ethernet 1000Mbps Full duplex"
Tunnel-Type:0 = VLAN
Tunnel-Medium-Type:0 = IEEE-802
Tunnel-Private-Group-Id:0 = "60"
State = 0x21c97337275f6a1a4c8d5d9438e5c8c8
EAP-Message = 0x0296002b190017030100208bc4203b2a2402fbc5000f71853972a02334860f1a6f9830ba495f782507f7fd
Message-Authenticator = 0xb54c11beffff4ff0e3210d345b00417d
# Executing section authorize from file /etc/freeradius/sites-enabled/default
+- entering group authorize {...}
++[preprocess] returns ok
++[chap] returns noop
++[mschap] returns noop
++[digest] returns noop
[suffix] No '@' in User-Name = "testuser4", looking up realm NULL
[suffix] No such realm "NULL"
++[suffix] returns noop
[eap] EAP packet type response id 150 length 43
[eap] Continuing tunnel setup.
++[eap] returns ok
Found Auth-Type = EAP
# Executing group from file /etc/freeradius/sites-enabled/default
+- entering group authenticate {...}
[eap] Request found, released from the list
[eap] EAP/peap
[eap] processing type peap
[peap] processing EAP-TLS
[peap] eaptls_verify returned 7
[peap] Done initial handshake
[peap] eaptls_process returned 7
[peap] EAPTLS_OK
[peap] Session established. Decoding tunneled attributes.
[peap] Peap state send tlv failure
[peap] Received EAP-TLV response.
[peap] The users session was previously rejected: returning reject (again.)
[peap] *** This means you need to read the PREVIOUS messages in the
debug output
[peap] *** to find out the reason why the user was rejected.
[peap] *** Look for "reject" or "fail". Those earlier messages will tell you.
[peap] *** what went wrong, and how to fix the problem.
[eap] Handler failed in EAP/peap
[eap] Failed in EAP select
++[eap] returns invalid
Failed to authenticate the user.
Using Post-Auth-Type Reject
# Executing group from file /etc/freeradius/sites-enabled/default
+- entering group REJECT {...}
[attr_filter.access_reject] expand: %{User-Name} -> testuser4
attr_filter: Matched entry DEFAULT at line 11
++[attr_filter.access_reject] returns updated
Delaying reject of request 7 for 1 seconds
Going to the next request
Waking up in 0.9 seconds.
Sending delayed reject for request 7
Sending Access-Reject of id 32 to 194.236.60.6 port 1438
EAP-Message = 0x04960004
Message-Authenticator = 0x00000000000000000000000000000000
Waking up in 3.9 seconds.
Cleaning up request 0 ID 25 with timestamp +2
Cleaning up request 1 ID 26 with timestamp +2
Cleaning up request 2 ID 27 with timestamp +2
Cleaning up request 3 ID 28 with timestamp +2
Cleaning up request 4 ID 29 with timestamp +2
Cleaning up request 5 ID 30 with timestamp +2
Cleaning up request 6 ID 31 with timestamp +2
Waking up in 1.0 seconds.
Cleaning up request 7 ID 32 with timestamp +2
Ready to process requests.
----->8------
Notice the lines:
[eap] Request found, released from the list
[eap] EAP/mschapv2
[eap] processing type mschapv2
[mschapv2] # Executing group from file
/etc/freeradius/sites-enabled/inner-tunnel
[mschapv2] +- entering group MS-CHAP {...}
[mschap] No Cleartext-Password configured. Cannot create LM-Password.
[mschap] No Cleartext-Password configured. Cannot create NT-Password.
[mschap] Creating challenge hash with username: testuser4
[mschap] Told to do MS-CHAPv2 for testuser4 with NT-Password
[mschap] FAILED: No NT/LM-Password. Cannot perform authentication.
[mschap] FAILED: MS-CHAP2-Response is incorrect
++[mschap] returns reject
I wonder what is this module doing.
Please, could you give us some advice?
Kind regards,
Francesc
5
5
Hello,
I had been able to successfully compile Freeradius 3.0 Master branch from github up until 2012-07-04 with the following options, on Mac OS X 10.7. The last commit in the source code at that time was from 2012-06-29.
./configure \
--prefix=/usr/local/freeradius \
--mandir=/usr/local/share/man \
--libdir=/usr/local/lib/freeradius \
--includedir=/usr/local/include \
--without-rlm_perl \
--without-rlm_sql_mysql \
--with-rlm_pam \
--with-rlm_ldap \
--with-openldap-include-dir=/usr/include \
--without-rlm_counter \
--without-rlm_dbm \
--without-rlm_ippool \
--without-rlm_krb5 \
--without-rlm_otp \
--without-rlm_python \
--without-rlm_sql \
--without-rlm_unixodbc \
--without-rlm_sql_iodbc \
--without-rlm_sql_postgresql \
--without-rlm_sql_oracle \
--without-rlm_sqlcounter \
--without-rlm_sqlippool \
--without-rlm_eap_tnc \
--without-rlm_eap_ikev2 \
--with-udpfromto \
--disable-static \
--enable-shared \
--enable-strict-dependencies \
--enable-developer \
--enable-ltdl-install=yes \
The next time I attempted a build, on 2012-07-13, I ran into two issues:
1) ./configure keeps complaining of:
configure: WARNING: unrecognized options: --without-rlm_perl, --without-rlm_sql_mysql, --with-rlm_pam, --with-rlm_ldap, --with-openldap-include-dir, --without-rlm_counter, --without-rlm_dbm, --without-rlm_ippool, --without-rlm_krb5, --without-rlm_otp, --without-rlm_python, --without-rlm_sql, --without-rlm_unixodbc, --without-rlm_sql_iodbc, --without-rlm_sql_postgresql, --without-rlm_sql_oracle, --without-rlm_sqlcounter, --without-rlm_sqlippool, --without-rlm_eap_tnc, --without-rlm_eap_ikev2, --enable-shared, --disable-static, --enable-ltdl-install
2) "make" eventually errors out:
...
Making all in src/modules/rlm_sometimes...
Making all in src/main...
/Users/raymont/freeradius-server/libtool --quiet --mode=link gcc -export-dynamic -dlopen self \
-o radiusd acct.lo auth.lo client.lo conffile.lo crypt.lo exec.lo files.lo listen.lo log.lo mainconfig.lo modules.lo modcall.lo radiusd.lo stats.lo soh.lo connection.lo session.lo threads.lo util.lo valuepair.lo version.lo xlat.lo process.lo realms.lo evaluate.lo vmps.lo detail.lo cb.lo tls.lo tls_listen.lo \
/Users/raymont/freeradius-server/src/lib/libfreeradius-radius.la -framework DirectoryService -lresolv -lpthread \
/Users/raymont/freeradius-server/libltdl/libltdl.la -lcrypto -lssl -lcrypto
Undefined symbols for architecture x86_64:
"_SSL_CTX_set_psk_client_callback", referenced from:
_init_tls_ctx in tls.o
"_SSL_CTX_set_psk_server_callback", referenced from:
_init_tls_ctx in tls.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[4]: *** [radiusd] Error 1
make[3]: *** [main] Error 2
make[2]: *** [all] Error 2
make[1]: *** [src] Error 2
make: *** [all] Error 2
With the 3.0 src today (2012-07-17), the first issue from 07-13 seems to be gone, but the second one still persists.
Suspecting it might be related to the OS X 10.7 system-bundled openssl in /usr/ being decrepated by Apple (see http://ludovicrousseau.blogspot.com/2011/08/mac-os-x-lion-and-openssl.html) I tried specifying the following ./configure options to no avail (same outcome):
--with-openssl-includes=/usr/local/include/openssl \
--with-openssl-libraries=/usr/local/ssl/lib \
I've also tried using various combinations of the following ./configure options instead, which caused "make" to fail with other errors (I could start separate threads about those later).
--disable-ltdl-install \
--enable-ltdl-install=no \
--with-system-libtool \
--with-system-libltdl \
Looking at the commits between 6/29 and 7/13, I don't really see anything obvious (to me) that'd point to any change in how libltdl behaves.
Between those two dates, I've updated GNU automake to 1.11.6 and my openssl (in /usr/local) from 0.9.8r to 1.0.1c.
Any pointer on how to get the latest FR 3.0 Master branch to compile on my box would be much appreciated.
Best Regards,
Y.J. Zhang
2
2
(I think I messed up the previous posting by returning on a previous by
Winter answered post. This message is found in the end of that post. I
am sorry. Hope this one comes in with the new subject.)
Can I connect to radius via a router that has a guestzone? It simply
means that the router has an extra guestzone interface that also
contains choice for PSK or EAP
>From the following information I wonder why the radiusd is not
responding.Remember I am trying to log in with the radius from the PC
where the radius is installed. Radius is on 192.168.0.198 and I am
attempting login or request from 192.168.0.198. This may also be a
mistake. Maybe there will be a conflict betw 192.168.0.1 = router and
192.168.0.198 localhost. I simply dont know.
The router is a DLINK 655
The OS is SuSE Linux Enterprise Desktop 10, ServPack 3
The radius is the freeradiu-sserver-2.1.12
Here are the fields from this zone in the router:
**ROUTER PART**
"Use this section to configure the guest zone settings of your router.
The guest zone provide a separate network zone for guest to access
Internet":
--GUEST ZONE SELECTION--
Enable Guest Zone : (Yes)
Wireless Band : 2.4GHz Band
Wireless Network Name : EAP_sled (Also called the SSID)
Enable Routing Between Zones : (No)
Security Mode : WPA-Enterprise
--WPA--
WPA Mode : Auto (WPA or WPA2)
Cipher Type : TKIP and AES
Group Key Update Interval : 3600 (seconds)
--EAP (802.1x)--
"When WPA enterprise is enabled, the router uses EAP (802.1x) to
authenticate clients via a remote RADIUS server."
Authentication Timeout : 60 (minutes)
RADIUS server IP Address : 192.168.0.198
RADIUS server Port : 1812
RADIUS server Shared Secret : testing123
MAC Address Authentication : No
**CLIENT.CONF**
Then I change the client.conf from localhost 127.0.0.1 to the IP of the
router 192.168.0.1
#client localhost {
# Allowed values are:
# dotted quad (1.2.3.4)
# hostname (radius.example.com)
# ipaddr = 127.0.0.1
# Test with router:
client router {
# Allowed values are:
# dotted quad (1.2.3.4)
# hostname (radius.example.com)
ipaddr = 192.168.0.1
#
and I keep rest of it as it was.
**/ETC/HOSTS/**
I put in a line in /etc/hosts/ (I am not sure if it is right or
necessary:
# IP-Address Full-Qualified-Hostname Short-Hostname
192.168.0.1 router dlink
**YAST CONFIG FOR THE USERCLIENT**
I change the setup in system (YaST)from PKS key to EAP:
--MODUS--
Accesspoint: (Yes)
Ad hoc: no
Master: no
--NETWORKNAME SSID--
EAP_sled
--AUTHENTICATION MODUS--
Open: no
Shared key: no
WPA-EAP (Yes)
WPA-PSK: no
EAP Modus: TTLS
Identity: sigbj (as in /usr/local/etc/raddb/users)
Password: testing-0 (as in /usr/local/etc/raddb/users)
Anonymous identity: (left open)
Client-Sert: (closed)
Client-Key: (closed)
Client-Key_password: whatever
Server-Sert: /usr/local/etc/raddb/certs/server.csr
I have made no changes in eap.conf and radius.conf
I try to start the radiusd -X with these changes (the previous test on
localhost is successful: "Ready to process requests." And radtest test
gives the right feedback:Sending Access-Accept of id 178 to 127.0.0.1
port 1932,so this test part works)
Some of the messages from the radiusd -X with the changed client.conf:
........
radiusd: #### Loading Clients ####
client router {
ipaddr = 192.168.0.1
require_message_authenticator = no
secret = "testing123"
nastype = "other"
.............
... adding new socket proxy address * port 1047
Listening on authentication address * port 1812
Listening on accounting address * port 1813
Listening on command file /usr/local/var/run/radiusd/radiusd.sock
Listening on authentication address 127.0.0.1 port 18120 as server
inner-tunnel
Listening on proxy address * port 1814
Ready to process requests.
radtest gives this:
Sending Access-Request of id 207 to 127.0.0.1 port 1812
User-Name = "sigbj"
User-Password = "testing-0"
NAS-IP-Address = 192.168.0.198
NAS-Port = 0
Message-Authenticator = 0x00000000000000000000000000000000
radclient: no response from server for ID 207 socket 3
and radiusd consequently:
Ignoring request to authentication address * port 1812 from unknown
client 127.0.0.1 port 1048
Trying to login with the Knetworkmanager (KDE) on to the network gives
no reaction on the server, server is just waiting, the knetworkmanager
may blink or just dryrun. I have a feeling that the server is listening
on the 127.0.0.1 instead on 192.168.0.1, but do not know
I am of course doing a typical newbie mistake somewhere, but I do not
know what.
IF YOU NEED THE WHOLE RADIUSD -X LOG AT THIS POINT, PLEASE TELL ME. I
have given this explanations to begin with. The problems may also be
that a router of this kind cannot be used on freeradius or that the
router is 100% "Windows-messed-up".
--
Si St
sigbj-st(a)operamail.com
--
http://www.fastmail.fm - The professional email service
5
11
Using FR as a central RADIUS server. One task it performs is dot1x auth. It forwards eap requests to one of several home servers which performs the auth and returns several attributes including Tunnel-Private-Group-Id. This attribute contains multiple values indicating one of several potential vlans a client can be put on. I would like perform simple load balancing by selecting one of the vlans randomly. I have the following within the post-auth section. What am I doing wrong? I have tried several variations. I know the syntax is incorrect but google has not been helpful. Thanks in advance.
if("%{reply:Tunnel-Private-Group-Id[#]}" > 1){
update reply {
Tunnel-Private-Group-Id := %{reply:Tunnel-Private-Group-Id[%{rand:%{reply:Tunnel-Private-Group-Id[#]}}]}
}
}
Version: freeradius-2.1.12_1
3
3
Hello,
I'm trying to run ldap auth with FreeRADIUS Version 2.1.10 (Debian
Squeeze) and FreeRADIUS Version 2.1.12 (FreeBSD 9.0) with a self-signed
certificate.
It is working for all platform excepted Win7 supplicant.
I found few stuff talking about this problem but i want to be sure.
Any way to do this working without change security settings on all
roaming clients?
Regards,
Matt
2
1
Hello!
I'm having problems configuring freeradius with smsmotp. I did every step
according to the materials found here:
http://wiki.freeradius.org/Rlm_smsotp
The problem is that freeradius doesn't start up succesfully. According to
the logs, it can't find the smsotp Auth-type.
My default site configuration:
authorize {
smsotp
...
}
authenticate {
Auth-Type smsotp {
pap
smsotp
}
Auth-Type smsotp-reply {
smsotp
}
...}
The part I've added to the users file:
feri Cleartext-Password := "Abcd1234"
DEFAULT Auth-Type := smsotp
The debug output:
Starting - reading configuration files ...
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/radiusd.conf
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/proxy.conf
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/clients.conf
including files in directory
/local/freeradius-server-2.1.12/etc/raddb/modules/
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/wimax
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/rediswho
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/sradutmp
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/chap
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/digest
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/perl
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/linelog
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/replicate
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/echo
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/detail.log
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/soh
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/unix
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/ldap
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/acct_unique
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/cui
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/smbpasswd
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/redis
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/exec
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/otp
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/detail.example.com
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/counter
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/logintime
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/mschap
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/mac2ip
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/smsotp
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/sql_log
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/always
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/krb5
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/checkval
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/detail
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/policy
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/dynamic_clients
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/radutmp
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/ippool
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/passwd
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/mac2vlan
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/opendirectory
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/pam
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/ntlm_auth
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/etc_group
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/expiration
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/realm
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/inner-eap
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/pap
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/expr
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/files
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/attr_filter
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/preprocess
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/attr_rewrite
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/modules/sqlcounter_expire_on_login
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/eap.conf
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/policy.conf
including files in directory
/local/freeradius-server-2.1.12/etc/raddb/sites-enabled/
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/sites-enabled/control-socket
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/sites-enabled/default.bak
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/sites-enabled/inner-tunnel
including configuration file
/local/freeradius-server-2.1.12/etc/raddb/sites-enabled/default
main {
allow_core_dumps = no
}
including dictionary file
/local/freeradius-server-2.1.12/etc/raddb/dictionary
main {
name = "radiusd"
prefix = "/local/freeradius-server-2.1.12"
localstatedir = "/local/freeradius-server-2.1.12/var"
sbindir = "/local/freeradius-server-2.1.12/sbin"
logdir = "/local/freeradius-server-2.1.12/var/log/radius"
run_dir = "/local/freeradius-server-2.1.12/var/run/radiusd"
libdir = "/local/freeradius-server-2.1.12/lib"
radacctdir =
"/local/freeradius-server-2.1.12/var/log/radius/radacct"
hostname_lookups = no
max_request_time = 30
cleanup_delay = 5
max_requests = 1024
pidfile =
"/local/freeradius-server-2.1.12/var/run/radiusd/radiusd.pid"
checkrad = "/local/freeradius-server-2.1.12/sbin/checkrad"
debug_level = 0
proxy_requests = yes
log {
stripped_names = no
auth = no
auth_badpass = no
auth_goodpass = no
}
security {
max_attributes = 200
reject_delay = 1
status_server = yes
}
}
radiusd: #### Loading Realms and Home Servers ####
proxy server {
retry_delay = 5
retry_count = 3
default_fallback = no
dead_time = 120
wake_all_if_all_dead = no
}
home_server localhost {
ipaddr = 127.0.0.1
port = 1812
type = "auth"
secret = "testing123"
response_window = 20
max_outstanding = 65536
require_message_authenticator = yes
zombie_period = 40
status_check = "status-server"
ping_interval = 30
check_interval = 30
num_answers_to_alive = 3
num_pings_to_alive = 3
revive_interval = 120
status_check_timeout = 4
coa {
irt = 2
mrt = 16
mrc = 5
mrd = 30
}
}
home_server_pool my_auth_failover {
type = fail-over
home_server = localhost
}
realm example.com {
auth_pool = my_auth_failover
}
realm LOCAL {
}
radiusd: #### Loading Clients ####
client localhost {
ipaddr = 127.0.0.1
require_message_authenticator = no
secret = "testing123"
nastype = "other"
}
client 192.168.25.68 {
require_message_authenticator = no
secret = "Abcd1234"
shortname = "WLC"
nastype = "cisco"
}
radiusd: #### Instantiating modules ####
instantiate {
Module: Linked to module rlm_exec
Module: Instantiating module "exec" from file
/local/freeradius-server-2.1.12/etc/raddb/modules/exec
exec {
wait = no
input_pairs = "request"
shell_escape = yes
}
Module: Linked to module rlm_expr
Module: Instantiating module "expr" from file
/local/freeradius-server-2.1.12/etc/raddb/modules/expr
Module: Linked to module rlm_expiration
Module: Instantiating module "expiration" from file
/local/freeradius-server-2.1.12/etc/raddb/modules/expiration
expiration {
reply-message = "Password Has Expired "
}
Module: Linked to module rlm_logintime
Module: Instantiating module "logintime" from file
/local/freeradius-server-2.1.12/etc/raddb/modules/logintime
logintime {
reply-message = "You are calling outside your allowed timespan "
minimum-timeout = 60
}
}
radiusd: #### Loading Virtual Servers ####
server { # from file /local/freeradius-server-2.1.12/etc/raddb/radiusd.conf
modules {
Module: Creating Auth-Type = digest
Module: Creating Post-Auth-Type = REJECT
Module: Checking authenticate {...} for more modules to load
Module: Linked to module rlm_pap
Module: Instantiating module "pap" from file
/local/freeradius-server-2.1.12/etc/raddb/modules/pap
pap {
encryption_scheme = "auto"
auto_header = no
}
Module: Linked to module rlm_chap
Module: Instantiating module "chap" from file
/local/freeradius-server-2.1.12/etc/raddb/modules/chap
Module: Linked to module rlm_mschap
Module: Instantiating module "mschap" from file
/local/freeradius-server-2.1.12/etc/raddb/modules/mschap
mschap {
use_mppe = yes
require_encryption = no
require_strong = no
with_ntdomain_hack = no
allow_retry = yes
}
Module: Linked to module rlm_digest
Module: Instantiating module "digest" from file
/local/freeradius-server-2.1.12/etc/raddb/modules/digest
Module: Linked to module rlm_unix
Module: Instantiating module "unix" from file
/local/freeradius-server-2.1.12/etc/raddb/modules/unix
unix {
radwtmp = "/local/freeradius-server-2.1.12/var/log/radius/radwtmp"
}
Module: Linked to module rlm_eap
Module: Instantiating module "eap" from file
/local/freeradius-server-2.1.12/etc/raddb/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 = "Password: "
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
CA_path = "/local/freeradius-server-2.1.12/etc/raddb/certs"
pem_file_type = yes
private_key_file =
"/local/freeradius-server-2.1.12/etc/raddb/certs/server.pem"
certificate_file =
"/local/freeradius-server-2.1.12/etc/raddb/certs/server.pem"
CA_file = "/local/freeradius-server-2.1.12/etc/raddb/certs/ca.pem"
private_key_password = "whatever"
dh_file = "/local/freeradius-server-2.1.12/etc/raddb/certs/dh"
random_file =
"/local/freeradius-server-2.1.12/etc/raddb/certs/random"
fragment_size = 1024
include_length = yes
check_crl = no
cipher_list = "DEFAULT"
make_cert_command =
"/local/freeradius-server-2.1.12/etc/raddb/certs/bootstrap"
ecdh_curve = "prime256v1"
cache {
enable = no
lifetime = 24
max_entries = 255
}
verify {
}
ocsp {
enable = no
override_cert_url = yes
url = "http://127.0.0.1/ocsp/"
}
}
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"
soh = no
}
Module: Linked to sub-module rlm_eap_mschapv2
Module: Instantiating eap-mschapv2
mschapv2 {
with_ntdomain_hack = no
send_error = no
}
Module: Checking authorize {...} for more modules to load
Module: Linked to module rlm_preprocess
Module: Instantiating module "preprocess" from file
/local/freeradius-server-2.1.12/etc/raddb/modules/preprocess
preprocess {
huntgroups = "/local/freeradius-server-2.1.12/etc/raddb/huntgroups"
hints = "/local/freeradius-server-2.1.12/etc/raddb/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: Linked to module rlm_realm
Module: Instantiating module "suffix" from file
/local/freeradius-server-2.1.12/etc/raddb/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
/local/freeradius-server-2.1.12/etc/raddb/modules/files
files {
usersfile = "/local/freeradius-server-2.1.12/etc/raddb/users"
acctusersfile =
"/local/freeradius-server-2.1.12/etc/raddb/acct_users"
preproxy_usersfile =
"/local/freeradius-server-2.1.12/etc/raddb/preproxy_users"
compat = "no"
}
/local/freeradius-server-2.1.12/etc/raddb/users[206]: Parse error (check)
for entry DEFAULT: Unknown value smsotp for attribute Auth-Type
Errors reading /local/freeradius-server-2.1.12/etc/raddb/users
/local/freeradius-server-2.1.12/etc/raddb/modules/files[7]: Instantiation
failed for module "files"
/local/freeradius-server-2.1.12/etc/raddb/sites-enabled/default.bak[170]:
Failed to load module "files".
/local/freeradius-server-2.1.12/etc/raddb/sites-enabled/default.bak[69]:
Errors parsing authorize section.
Could anyone point me in the right direction? Any help would be appreciated.
Regards,
Feri
2
2
I want to use the Acct-Output-Gigawords attribute along with the Acct-Output-Octets to keep track of traffic in an rlm_counter that can exceed the 32-bit integer limitation. It looks like the counter will take only one count-attribute. How can I use both of these attributes in a single counter?
2
1