Acct-Status-Type = 7 [SOLVED]
Oscar Jofre
oscar at jofre.com
Mon Apr 17 22:17:54 CEST 2017
Hi,
[SOLVED]
As you told Alan, I did uncomment on accounting
if (noop) {
ok
}
And then on production Accounting-on worked with user informed and user not informed.
But I wandered why on TEST environment with that lines comment worked.
Finally a saw the differences.
If you have uncommented details on accounting section then Accounting-on works always, with user informed and not informed --> that’s why on TEST was working, and on production that details are commented the Accounting-on with no user defined was not responding.
So:
THIS WORKS:
accounting {
...
detail
...
# if (noop) {
# ok
# }
}
THIS WORKS:
accounting {
...
# detail
...
if (noop) {
ok
}
}
THIS DOESN'T WORKS:
accounting {
...
# detail
...
# if (noop) {
# ok
# }
}
All have an explanation for me at the end !
Thanks for the help !
-----Mensaje original-----
De: Freeradius-Users [mailto:freeradius-users-bounces+oscar=jofre.com at lists.freeradius.org] En nombre de Alan DeKok
Enviado el: lunes, 17 de abril de 2017 19:02
Para: FreeRadius users mailing list
Asunto: Re: Acct-Status-Type = 7
On Apr 17, 2017, at 12:41 PM, Oscar Jofre <oscar at jofre.com> wrote:
> I wish no need to try for hours, but even I'm a developer I don't have the deep knowledge about radius and even linux environment ... can't know about everything...\
The idea is simple: follow the instructions on this list.
When I say to post the debug log, I mean for you to post all of it. All of the documentation makes this clear. When you post part of the debug log, you are making it difficult for us to help you.
> I wish you to point me to the correct instructions, I've read many pages about radius debugging, I've tried, trust me, to figure out by myself ... but still with no understand where is the difference.
Then post the debug log and let *us* help. It's not hard.
> I really appreciate you help !
>
> The packets should be exactly the same (no username in both requests and different result). I'm sure I missing something ...
It doesn't need a User-Name attribute. The NAS is rebooting. There's no "user".
> If you need any more detail please let me know and I will the all to give necessary informations.
That was enough.
The short answer is to go to the file raddb/sites-enabled/default. In the "accounting" section after the "sql" module, add:
if (noop) {
ok
}
There should already be code like that in the file, but commented out.
> I don’t understand about: It's in the FAQ, "man" pages, web pages, and pretty much daily on this list
When I say to post the debug log. It's mentioned EVERYWHERE in the documentation, and daily on this list.
Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
More information about the Freeradius-Users
mailing list