Realms and Accounting
Hey, Regarding realms handled in the local server (mysql) and accounting... I have defined realms in the users file such as: DEFAULT Realm == "example.com", Autz-Type := SQL_EXAMPLE and in radiusd.conf I add in authorize { } Autz-Type SQL_EXAMPLE { sql_example } and as expected authentication works just fine by looking up in the current database. To enable accounting for both realms I have done the same thing in radiusd.conf for the accounting { } module: Acct-Type SQL_EXAMPLE { sql_example } Although this is defined no accounting records are saved in the database. I am wondering if I'm missing something else like adding the Acct-Type to the users file too, such as: DEFAULT Realm == "example.com", Autz-Type := SQL_EXAMPLE, Acct-Type := SQL_HOTELNOVA Regards,
This issue has yet to be resolved for me, running 1.1.7. Any pointers? ---------- Forwarded message ---------- From: liran tal <liransgarage@gmail.com> Date: Sun, Feb 22, 2009 at 12:24 AM Subject: Realms and Accounting To: FreeRadius users mailing list <freeradius-users@lists.freeradius.org> Hey, Regarding realms handled in the local server (mysql) and accounting... I have defined realms in the users file such as: DEFAULT Realm == "example.com", Autz-Type := SQL_EXAMPLE and in radiusd.conf I add in authorize { } Autz-Type SQL_EXAMPLE { sql_example } and as expected authentication works just fine by looking up in the current database. To enable accounting for both realms I have done the same thing in radiusd.conf for the accounting { } module: Acct-Type SQL_EXAMPLE { sql_example } Although this is defined no accounting records are saved in the database. I am wondering if I'm missing something else like adding the Acct-Type to the users file too, such as: DEFAULT Realm == "example.com", Autz-Type := SQL_EXAMPLE, Acct-Type := SQL_HOTELNOVA Regards,
Regarding realms handled in the local server (mysql) and accounting... I have defined realms in the users file such as: DEFAULT Realm == "example.com", Autz-Type := SQL_EXAMPLE and in radiusd.conf I add in authorize { } Autz-Type SQL_EXAMPLE { sql_example } and as expected authentication works just fine by looking up in the current database. To enable accounting for both realms I have done the same thing in radiusd.conf for the accounting { } module: Acct-Type SQL_EXAMPLE { sql_example } Although this is defined no accounting records are saved in the database. I am wondering if I'm missing something else like adding the Acct-Type to the users file too, such as: DEFAULT Realm == "example.com", Autz-Type := SQL_EXAMPLE, Acct-Type := SQL_HOTELNOVA
Put Acct-Type in acct_users. Ivan Kalik Kalik Informatika ISP
Thanks Ivan, I was able to find that from this post http://www.mail-archive.com/freeradius-users@lists.freeradius.org/msg17929.h... too. So for Session-Type and for Post-Auth-Type, they should all go into acct_users as well? On Sat, Mar 7, 2009 at 11:54 PM, <tnt@kalik.net> wrote:
Regarding realms handled in the local server (mysql) and accounting... I have defined realms in the users file such as: DEFAULT Realm == "example.com", Autz-Type := SQL_EXAMPLE and in radiusd.conf I add in authorize { } Autz-Type SQL_EXAMPLE { sql_example } and as expected authentication works just fine by looking up in the current database. To enable accounting for both realms I have done the same thing in radiusd.conf for the accounting { } module: Acct-Type SQL_EXAMPLE { sql_example } Although this is defined no accounting records are saved in the database. I am wondering if I'm missing something else like adding the Acct-Type to the users file too, such as: DEFAULT Realm == "example.com", Autz-Type := SQL_EXAMPLE, Acct-Type := SQL_HOTELNOVA
Put Acct-Type in acct_users.
Ivan Kalik Kalik Informatika ISP
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
So for Session-Type and for Post-Auth-Type, they should all go into acct_users as well?
What is Session-Type? Do you mean Service-Type? No, things relevant to authenticating and authorizing users go into users file. Users file will be used when processing Access-Request packets. Things relevant to accounting go into acct_users. That file is used when processing Accounting-Request packets. Ivan Kalik Kalik Informatika ISP
participants (2)
-
liran tal -
tnt@kalik.net