Paul Hampson wrote:
On Wed, Sep 22, 2004 at 04:20:23AM -0700, Evren Yurtesen wrote:
Hello,
I want to use the freeradius ip pools.
I just wonder something though ever ip pool name I define should be included in the accounting and post-auth sections?
Its kind of confusing, whats the point of defining the Pool-Name attribute in users file and then define the same name in accounting and post-auth sections?
The Pool-Name attribute is attached to a RADIUS request, and is checked by the rlm_ippool module before any action is taken. Its existance does not depend on the rlm_ippool module, but nothing else (to my knowledge) uses it.
Putting the pool name into the sections of the config file triggers the instance of the rlm_ipool module to act upon the current request, as it passes through that stage of processing.
rlm_ippool allocates IP addresses when called from post-auth, and marks IP addresses as free again when called from accounting.
I hope that clarifies things.
So if I put the pool name to accounting and post-auth, then I dont have to have Pool-Name in users file? All the users would use the pool which is defined in accounting and post-auth?
If I have to define every pool name in those sections. I mean what if I have 100 different pools? wouldnt it be just extra work to edit conf file every time in 2 different sections?
But then why just above the main_pool says that it is REQUIRED to have Pool-Name?
# The module also requires the existance of the Pool-Name
# attribute. That way the administrator can add the Pool-Name
# attribute in the user profiles and use different pools
# for different users. The Pool-Name attribute is a *check* item not
# a reply item.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

