Hostap+Freeradius and accounting on the same machine

lolo lolo
Wed Oct 29 15:24:56 PDT 2008


Is someone have installing and configuring accounting with hostapd and 
freeradius on the same machine ?

I have some problems to understand why my configuration doesn't save any data 
in table "radacct" ?
I have some data in "radpostauth" : 
1       bea             Access-Accept   2008-10-28 00:14:57
2       bea             Access-Accept   2008-10-28 00:19:14

My freeradius configuration is based on LDAP with SQL to store data...

Here my configuration :
- On the same machine I have OpenLDAP+Hostapd+Freeradius
- authenticating works !
- accounting request was send : (wireshark shoot)

No.     Time        Source                Destination           Protocol Info
     10 4.520626              RADIUS   
Accounting-Request(4) (id=242, l=194)

Frame 10 (238 bytes on wire, 238 bytes captured)
Linux cooked capture
Internet Protocol, Src: (, Dst: (
User Datagram Protocol, Src Port: 33080 (33080), Dst Port: radius-acct (1813)
    Source port: 33080 (33080)
    Destination port: radius-acct (1813)
    Length: 202
    Checksum: 0x18d9 [incorrect, should be 0x7400]
Radius Protocol
    Code: Accounting-Request (4)
    Packet identifier: 0xf2 (242)
    Length: 194
    Authenticator: 3A902C44595C10807918F491B63CDA2B
    Attribute Value Pairs
        AVP: l=19  t=Acct-Session-Id(44): 48F7C09B-00000021
        AVP: l=6  t=Acct-Status-Type(40): Stop(2)
        AVP: l=6  t=Acct-Authentic(45): RADIUS(1)
        AVP: l=5  t=User-Name(1): bea
        AVP: l=6  t=NAS-IP-Address(4):
        AVP: l=8  t=NAS-Identifier(32): debian
        AVP: l=6  t=NAS-Port(5): 0
        AVP: l=29  t=Called-Station-Id(30): 00-18-4D-76-22-19:Debian-AP
        AVP: l=19  t=Calling-Station-Id(31): 00-1A-70-AE-D4-53
        AVP: l=6  t=NAS-Port-Type(61): Wireless-802.11(19)
        AVP: l=22  t=Connect-Info(77): CONNECT 0Mbps 802.11
        AVP: l=6  t=Acct-Session-Time(46): 27
        AVP: l=6  t=Acct-Input-Packets(47): 63
        AVP: l=6  t=Acct-Output-Packets(48): 21
        AVP: l=6  t=Acct-Input-Octets(42): 7256
        AVP: l=6  t=Acct-Output-Octets(43): 3623
        AVP: l=6  t=Event-Timestamp(55): Oct 17, 2008 05:23:47.000000000
        AVP: l=6  t=Acct-Terminate-Cause(49): User-Request(1)

Seams good !?

Here the response of freeradius :
Fri Oct 17 19:23:33 2008 : Error: Received Accounting-Request packet from with invalid signature!  (Shared secret is incorrect.) Dropping 
packet without response.

Here where to find my all configuration :

Many thank's

If my English is not perfect, it's because I'm not ! I am French ! ;)

More information about the Hostap mailing list