I'm a newby to freeradius2 (from cistron), and I have it starting up, and logging. However, it isn't attempting to load the "users" file. I do not see any line in the radiusd.conf file which references "users". I can remove the users file, and freeradius2 doesn't complain about it. Please, what am I missing? -- Jim Pazarena work:250 559-7777 Box 550 - 405 2nd Avenue fax: 866 279-3608 Queen Charlotte BC V0T 1S0 mailto:jim@paz.bz
Jim Pazarena wrote:
I'm a newby to freeradius2 (from cistron),
Wow... you haven't upgraded in a while.
and I have it starting up, and logging. However, it isn't attempting to load the "users" file.
It loads it in the default configuration.
I do not see any line in the radiusd.conf file which references "users".
It's not. It's in raddb/modules/files.
I can remove the users file, and freeradius2 doesn't complain about it. Please, what am I missing?
You seemed to have copied the Cistron configuration to FreeRADIUS. Or, done something similar to break the default configuration. Don't do that. The default configuration works. Use it. Make the *minimal* changes necessary to get your Cistron config working. It shouldn't be hard. Just copy the "users" file, and not much else. Alan DeKok.
On 2011-11-21 10:56 AM, Alan DeKok wrote:
Jim Pazarena wrote:
I'm a newby to freeradius2 (from cistron),
Wow... you haven't upgraded in a while.
correct. FreeBSD 7.0 i386 cistron 1.6.8 to FreebSD 8.2 amd64 freeradius 2.1.12 and cistron doesn't run on the 64-bit OS.
and I have it starting up, and logging. However, it isn't attempting to load the "users" file.
It loads it in the default configuration.
I do not see any line in the radiusd.conf file which references "users".
It's not. It's in raddb/modules/files.
Ah. I had my users file in raddb NOT in raddb/modules So I moved it to modules, and a debug start nags: /raddb/modules/users[50]: Expecting section start brace '{' after "DEFAULT Auth-Type" The default users file does not have -any- open or closing curly brackets. what am I missing? Thanks! -- Jim Pazarena work:250 559-7777 Box 550 - 405 2nd Avenue fax: 866 279-3608 Queen Charlotte BC V0T 1S0 mailto:jim@paz.bz
On Tue, Nov 22, 2011 at 4:31 AM, Jim Pazarena <jim@paz.bz> wrote:
I do not see any line in the radiusd.conf file which references "users".
It's not. It's in raddb/modules/files.
Ah. I had my users file in raddb NOT in raddb/modules
So I moved it to modules,
You shoulnd'nt. /etc/raddb/modules/files is the configuration for "files" module. Open it and you should see this line usersfile = ${confdir}/users ... which means "the user file is /etc/raddb/users"
and a debug start nags: /raddb/modules/users[50]: Expecting section start brace '{' after "DEFAULT Auth-Type"
... because you do something you shouldn't :) Move it back
The default users file does not have -any- open or closing curly brackets. what am I missing? Thanks!
It case you haven't figure it out already, there are many files it raddb/modules. It's only processed when a section explictly refer to it. So: - move users file back to its original place - make SURE you have "files" in authorize section of /etc/raddb/sites-available/default - start FR in debug mode at that point it will refuse to start if users file is missing. The debug log will show something like this 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" } Couldn't open /etc/freeradius/users for reading: No such file or directory Errors reading /etc/freeradius/users /etc/freeradius/modules/files[7]: Instantiation failed for module "files" /etc/freeradius/sites-enabled/default[166]: Failed to load module "files". /etc/freeradius/sites-enabled/default[62]: Errors parsing authorize section. -- Fajar
participants (3)
-
Alan DeKok -
Fajar A. Nugraha -
Jim Pazarena