Hi all! I execute an external script as soon as I get an Access- or an Accounting-Request. The scripts collects (from the environment variables) all the attributes received and writes them to a Database. I encountered a problem recently. The attribute User-Name is missing (its value equals NULL) for the Accounting-Requests but it is there in the Access-Requests. I find this strange that the User-Name attribute is sent with certain package types and not with others. My server is a freeRADIUS 1.0.3. Thanks for any contributions to solving this problem! -- Vicky
On Thu, Jun 23, 2005 at 03:12:33PM +0200, vicky wrote:
Hi all!
I execute an external script as soon as I get an Access- or an Accounting-Request. The scripts collects (from the environment variables) all the attributes received and writes them to a Database. I encountered a problem recently. The attribute User-Name is missing (its value equals NULL) for the Accounting-Requests but it is there in the Access-Requests. I find this strange that the User-Name attribute is sent with certain package types and not with others. My server is a freeRADIUS 1.0.3.
Thanks for any contributions to solving this problem!
Have a look at your radacct logs (you're keeping radacct logs, right?) and see if you're actually being sent a User-Name attribute. In fact, in the first instance, I'd use 'env' and confirm that your script is seeing all the attributes that get logged from the accounting packets. -- Paul "TBBle" Hampson, on an alternate email client.
Paul! Thanks for your respond! I do keep radacct logs and I did check it. I even run my server in debug mode and saw that the User-Name attribute is actually there. As for the other attributes I manage to get all of them except the User-Name! I find this very strange and it is almost driving me nuts. V Paul Hampson wrote:
On Thu, Jun 23, 2005 at 03:12:33PM +0200, vicky wrote:
Hi all!
I execute an external script as soon as I get an Access- or an Accounting-Request. The scripts collects (from the environment variables) all the attributes received and writes them to a Database. I encountered a problem recently. The attribute User-Name is missing (its value equals NULL) for the Accounting-Requests but it is there in the Access-Requests. I find this strange that the User-Name attribute is sent with certain package types and not with others. My server is a freeRADIUS 1.0.3.
Thanks for any contributions to solving this problem!
Have a look at your radacct logs (you're keeping radacct logs, right?) and see if you're actually being sent a User-Name attribute. In fact, in the first instance, I'd use 'env' and confirm that your script is seeing all the attributes that get logged from the accounting packets.
-- Vicky El Fhaily Integration Manager TRUSTIVE (France) WTC 2, Les Bouillides 120, Route des Macarons Parc de Sophia Antipolis 06560 Valbonne, France Phone: +33 493 65 25 63 Fax: +33 493 65 21 56 www.trustive.com / www.corp.trustive.com
participants (2)
-
Paul.Hampson@PObox.com -
vicky