I had this problem on FreeBSD 9.2 so I did a fresh install of FreeBSD 10 to see if I still had the same problem.
The problem that I am having is when I run radiusd -X I receive the following error:
Here are the steps that I followed to install and configured freeradius3
I installed freeradius3 from the ports tree by doing the following:
I also changed 4 config files:
/usr/local/etc/raddb/radiusd.conf
/usr/local/etc/raddb/clients.conf
/usr/local/etc/raddb/mods-available/mschap
/usr/local/etc/raddb/mods-available/eap
After some Googling I found this page that says that I am using version 2 dictionaries and that is what is causing my problem.
So I went to the freeradius homepage and downloaded the freeradius 3.0 package and tried to copy over just the dictionary.dhcp. But I still receive the same error.
I also tried changing format in /usr/local/share/freeradius/dictionary.dhcp from
to
But I receive the error that the comments warn about:
I attempted to just delete dictionary.dhcp, but I receive an error that dictionary.dhcp is missing.
The last thing that I tried was commenting out dictionary.dhcp in /usr/local/share/freeradius/dictionary. When I do that radiusd loads a bit farther, but I eventually receive this error:
I'm not sure if this matters, but just in case. This FreeBSD server is using DHCP rather than having a static IP. Also I did not install the experimental DHCP piece when I built freeradius3 in the ports.
I'm not really sure where to go form here. Does anyone have any suggestions? Also is this an error in the ports itself?
Any help or suggestions would be greatly appreciated.
The problem that I am having is when I run radiusd -X I receive the following error:
Code:
$ sudo radiusd -X
radiusd: FreeRADIUS Version 3.0.0, for host amd64-portbld-freebsd10.0, built on Jan 23 2014 at 14:48:01
Copyright (C) 1999-2013 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.
For more information about these matters, see the file named COPYRIGHT.
Starting - reading configuration files ...
including dictionary file /usr/local/etc/raddb/dictionary
Errors reading dictionary: dict_init: /usr/local/share/freeradius/dictionary.dhcp[207]: Type "tlv" can only be for "format=1,1".
I installed freeradius3 from the ports tree by doing the following:
Code:
cd /usr/ports/net/freeradius3
sudo make
EDIR
FREETDS
HEMDAL_PORT
KERBEROS
LDAP
PERL
PYTHON
SSL_PORT
USER
gdbm-1.11
Uncheck COMPAT
NLS
freetds-0.64_9,1
DOCS
Uncheck GNUTLS
Uncheck MSDBLIB
OPENSSL
Uncheck IODBC
Uncheck UNIXODBC
sudo make install
sudo make clean
/usr/local/etc/raddb/radiusd.conf
Code:
max_requests = 25600
Code:
client 10.1.1.1 {
secret = Password
shortname = Wireless
nas_type = cisco
}
Code:
with_ntdomain_hack = yes
ntlm_auth = "/usr/local/bin/ntlm_auth --request-nt-key --username=%{%{Stripped-User-Name}:-%{%{User-Name}:-None}} --challenge=%{%{mschap:Challenge}:-00} --nt-response=%{%{mschap:NT-Response}:-00}"
Code:
default_eap_type = ttls
So I went to the freeradius homepage and downloaded the freeradius 3.0 package and tried to copy over just the dictionary.dhcp. But I still receive the same error.
I also tried changing format in /usr/local/share/freeradius/dictionary.dhcp from
Code:
VENDOR DHCP 54 format=2,1
Code:
VENDOR DHCP 54 format=1,1
Code:
Errors reading dictionary: dict_init: /usr/local/share/freeradius/dictionary.dhcp[35]: dict_addattr: ATTRIBUTE has invalid number (larger than 255).
The last thing that I tried was commenting out dictionary.dhcp in /usr/local/share/freeradius/dictionary. When I do that radiusd loads a bit farther, but I eventually receive this error:
Code:
/usr/local/etc/raddb/mods-enabled/dhcp[18]: Failed to link to module 'rlm_dhcp': Shared object "rlm_dhcp.so" not found, required by "radiusd"
I'm not really sure where to go form here. Does anyone have any suggestions? Also is this an error in the ports itself?
Any help or suggestions would be greatly appreciated.