#------------------------------------------------------------
# !!DO NOT MODIFY THIS FILE!!
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at http://www.contribs.org/development/
#
# Copyright (C) 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------
This means that this is a SME "templated" file, which is re-generated automatically at certain times based on the "template fragments" found in the
folder named /etc/e-smith/templates/path/to/config/file (in this case, there are two files in the folder named /etc/e-smith/templates/etc/raddb/clients.conf).
To
test a configuration change, it is enough to edit the config file manually and restart the associated service - but when you run
signal-event remoteaccess-update, your changes are removed and the file is re-generated from the original template fragments.
Try this:
1) edit the file manually
2) restart the radius service using
sv restart radiusd3) once you know your changes work as desired, create a "custom" template fragment for /etc/raddb/clients.conf as follows
mkdir -p /etc/e-smith/templates-custom/etc/raddb/clients.conf
pico -w /etc/e-smith/templates-custom/etc/raddb/clients.conf/30MyNewRadiusClient
* Start the custom template name with "30" so that it comes
after the original SME pieces, whose fragment names start with "10" and "20"
* Replace
MyNewRadiusClient with something meaningful to you
* Add your
customizations to the new template fragment
Now, when you re-generate the /etc/radiusd/clients.conf using
signal-event remoteaccess-update or
expand-template /etc/radiusd/clients.conf you should get your customizations added to the end of the file automatically.
Additionally, your customizations will be included in SME backups, will survive system upgrades, etc, etc.
Read more about SME templates at
http://smemirror.fullnet.co.uk/contribs/gordonr/devguide/html/c610.htm