Hello freeradius-users,
I need to differentiate users with their traffic limits, so i have
common traffic limit digit in LDAP in
cn=radprofile,dc=domain,dc=com, and for some users i have set their own
traffic limits in their own entries (like uid=lan,ou=users,dc=domain,dc=com).
So i need first of all look to user entry, and if there is no
traffic limit attribute - get value of a common limit attribute in
common entry.
In 'variables.txt' i found this:
==========================
2. %{Foo:-%{Bar}}
When attribute Foo is set: returns value of attribute Foo
When attribute Foo unset: returns value of attribute Bar (if any)
==========================
And i have this construction in 'users' file:
Traffic-Limit := `%{expr: %{ldap:...} - %{sql:...}}`
Can it work with ldap queries? I need something like this:
`%{expr: %{ldap:...:-%{ldap:...}} - %{sql:...}}`
or like this
`%{expr: %{%{ldap:...}:-%{ldap:...}}} - %{sql:...}}`
But with these constructions radiusd wont start:
"Parse error (reply) for entry DEFAULT: Expected end of line or
comma".
Or how can i make it at all?
--
Best regards,
Alexander mailto:[EMAIL PROTECTED]
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html