Is it possible to have equivalent of: [...] clients alfa { client ni { ipaddr = ni.kjonca secret = verysecret nastype = other } client test { ipaddr = alfa.kjonca secret = verysecret nastype = other } } [...] listen { [...] clients = alfa } I am in doubt but maybe I missed something. KJ -- http://stopstopnop.pl/stop_stopnop.pl_o_nas.html QOTD: "I sprinkled some baking powder over a couple of potatoes, but it didn't work."
On Fri, 2017-12-01 at 06:09 +0100, Kamil Jońca wrote:
Is it possible to have equivalent of: [...]
clients alfa { client ni { ipaddr = ni.kjonca secret = verysecret nastype = other } client test { ipaddr = alfa.kjonca secret = verysecret nastype = other } } [...] listen { [...] clients = alfa }
I am in doubt but maybe I missed something.
See templates.conf, that should do what you want. -- Matthew
kjonca@o2.pl (Kamil Jońca) writes:
Is it possible to have equivalent of: [...]
clients alfa { client ni { ipaddr = ni.kjonca secret = verysecret nastype = other } client test { ipaddr = alfa.kjonca secret = verysecret nastype = other } } [...] listen { [...] clients = alfa }
I forgot to type: Can I have something like above with nas info kept in sql database?
I am in doubt but maybe I missed something.
KJ
-- http://stopstopnop.pl/stop_stopnop.pl_o_nas.html Please, won't somebody tell me what diddie-wa-diddie means?
On Dec 1, 2017, at 9:27 AM, Kamil Jońca <kjonca@o2.pl> wrote:
I forgot to type: Can I have something like above with nas info kept in sql database?
Unfortunately, no. The NAS table in SQL contains the only information which can be used to create clients from SQL. Adding more fields would require changing the C source to rlm_sql, the SQL schema, and the SQL queries. We're working on changing that for v4. It should be a lot more flexible. Alan DeKok.
participants (3)
-
Alan DeKok -
kjonca@o2.pl -
Matthew Newton