authentication after accounting

jose caceres josexato at gmail.com
Sun Sep 21 04:45:33 CEST 2008


hello,

I am breaking my mind now, i am trying to make the accounting of an
sip/voip equipment but afte it succesfully starts the accounting it
send another authentication request with some diferents AVPs
and in my radiusd -X sais:
rad_recv: Accounting-Request packet from host 200.X.X.X port 55576,
id=0, length=292
        Called-Station-Id = "3000"
        Acct-Status-Type = Start
        Cisco-Attr-100 =
0x7369702d73657475702d74696d653d536174205365702032302032323a32363a3031205045542032303038
        Calling-Station-Id = "test"
        Acct-Session-Id = "98170424 104478101 55323532 61851730"
        Cisco-Attr-100 = 0x7369702d66726f6d2d7461673d35363635616438643831
        NAS-Identifier = "nike.telestar.cl"
        Cisco-Attr-100 =
0x7369702d696e636f6d696e672d69703d3139302e34332e33362e3732
        Service-Type = Sip-Session
        User-Name = "test"
        Cisco-Attr-100 =
0x7369702d636f6e662d69643d393831373034323420313034343738313031203535333233353332203631383531373330
        NAS-Port = 5060
        Sip-Method = INVITE
+- entering group preacct {...}
++[preprocess] returns ok
[acct_unique] Hashing 'NAS-Port = 5060,Client-IP-Address =
200.X.X.X,NAS-IP-Address = 200.X.X.X,Acct-Session-Id = "98170424
104478101 55323532 61851730",User-Name = "test"'
[acct_unique] Acct-Unique-Session-ID = "ef65cd74a6014dd0".
++[acct_unique] returns ok
[suffix] No '@' in User-Name = "test", looking up realm NULL
[suffix] No such realm "NULL"
++[suffix] returns noop
++[files] returns noop
+- entering group accounting {...}
        expand:
/usr/local/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d
-> /usr/local/var/log/radius/radacct/200.X.X.X/detail-20080920
[detail] /usr/local/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d
expands to /usr/local/var/log/radius/radacct/200.X.X.X/detail-20080920
        expand: %t -> Sat Sep 20 22:35:53 2008
++[detail] returns ok
++[unix] returns ok
        expand: /usr/local/var/log/radius/radutmp ->
/usr/local/var/log/radius/radutmp
        expand: %{User-Name} -> test
++[radutmp] returns ok
        expand: %{User-Name} -> test
 attr_filter: Matched entry DEFAULT at line 12
++[attr_filter.accounting_response] returns updated
Sending Accounting-Response of id 0 to 200.X.X.X port 55576
Finished request 0.
Cleaning up request 0 ID 0 with timestamp +13
Going to the next request
Ready to process requests.
rad_recv: Access-Request packet from host 200.X.X.X port 37772, id=1, length=192
        NAS-Identifier = "nike.telestar.cl"
        Called-Station-Id = "3000"
        Cisco-Attr-100 =
0x7369702d7372632d616464726573733d3139302e34332e33362e3732
        Calling-Station-Id = "test"
        User-Name = "test"
        NAS-Port = 5060
        Cisco-Attr-100 =
0x7369702d636f6e662d69643d393831373034323420313034343738313031203535333233353332203631383531373330
        Acct-Session-Id = "98170424 104478101 55323532 61851730"
+- entering group authorize {...}
++[preprocess] returns ok
++[chap] returns noop
++[mschap] returns noop
++[digest] returns noop
[suffix] No '@' in User-Name = "test", looking up realm NULL
[suffix] No such realm "NULL"
++[suffix] returns noop
[eap] No EAP-Message, not doing EAP
++[eap] returns noop
++[unix] returns notfound
[files] users: Matched entry test at line 205
++[files] returns ok
++[expiration] returns noop
++[logintime] returns noop
[pap] No clear-text password in the request.  Not performing PAP.
++[pap] returns noop
WARNING: Please update your configuration, and remove 'Auth-Type = Local'
WARNING: Use the PAP or CHAP modules instead.
No User-Password or CHAP-Password attribute in the request.
Cannot perform authentication.
Failed to authenticate the user.
Using Post-Auth-Type Reject
+- entering group REJECT {...}
        expand: %{User-Name} -> test
 attr_filter: Matched entry DEFAULT at line 11
++[attr_filter.access_reject] returns updated
Delaying reject of request 1 for 1 seconds
Going to the next request
Waking up in 0.9 seconds.
Sending delayed reject for request 1
Sending Access-Reject of id 1 to 200.X.X.X port 37772
        Reply-Message = "holamundo, test with digest"
Waking up in 4.9 seconds.


I assume that i need start with that, associating a previous
accounting session in order to give in response some attributes, i
would appreciate if any body can give me some guidance.

thanks in advance

-- 
Josexato



More information about the Freeradius-Users mailing list