Alan DeKok wrote:Greg G <mailto:[EMAIL PROTECTED]><[EMAIL PROTECTED]> wrote:Nothing is unclear about it. I would prefer that the daemon not fail out if there's a data error in one of the files. It should report that error to a log and continue on. Otherwise, it becomes a fairly trivial task to crash out the daemon. Our users file is fairly dynamic and if someone makes a typo putting in a new entry, I don't want the whole system coming down.
Here's what I get from FR 0.93
/usr/local/etc/raddb/users[9]: Parse error (reply) for entry 007gold: Unknown attribute My-Key Errors reading /usr/local/etc/raddb/users radiusd.conf[921]: files: Module instantiation failed.
And then back to a prompt. That's bad since I won't always be able to watch the radiusd start up.
So... it doesn't crash. It gives an error, which tells you what went wrong, and why.
What, exactly is unclear about the error message?
Sorry, I prefer my failures to be deterministic. I don't want the server carrying on and running with a partial config and doing something un- expected.
Garbage in/Garbage out.
If you are concerned with making typos, you may want to look at the 'dialup-admin' package, which allows you to easily manage an SQL database rather than a flat users file. Your chances of making a typo would then be greatly reduced imho, and if you did typo on one entry for a user, it would not affect any other users.
-Chris -- \\\|||/// \ StarNet Inc. \ Chris Parker \ ~ ~ / \ WX *is* Wireless! \ Director, Engineering | @ @ | \ http://www.starnetwx.net \ (847) 963-0116 oOo---(_)---oOo--\------------------------------------------------------ \ Wholesale Internet Services - http://www.megapop.net
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
