tim-donahue / bsdradius

Automatically exported from code.google.com/p/bsdradius
0 stars 1 forks source link

Problem with bsdradclient.py #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello

When I want start bsdradclient.py.

therin@Z10N:~/bsdradius/share/bsdradius/tools$ python bsdradclient.py 
--- Parsing dictionary files ---
--- Reading config file ---
Adding: User-Name : '5555555'
Adding: Calling-Station-Id : '5555555'
Adding: Called-Station-Id : '123#4567811234567890'
Adding: Quintum-h323-conf-id : 'h323-conf-id=34343663 62353735 31660034 
383463F6'
Adding: NAS-IP-Address : '10.1.1.8'
Adding: Client-IP-Address : '10.1.1.8'
Adding: Service-Type : 'Login-User'
Adding: NAS-Port-Type : 'Async'
Adding: User-Password : '5555555'
Adding: Quintum-AVPair : 'h323-ivr-out=ACCESSCODE:'
Adding: Quintum-h323-disconnect-time : 'h323-disconnect-time=17:57:16.360 UTC 
Thu May 18 2006'
Adding: Acct-Input-Packets : 0
Adding: Quintum-h323-disconnect-cause : 'h323-disconnect-cause=29'
Adding: Quintum-h323-call-origin : 'h323-call-origin=originate'
Adding: Quintum-Trunkid-Out : ''
Adding: Acct-Input-Octets : 0
Adding: Acct-Status-Type : 'Stop'
Adding: Quintum-Trunkid-In : '0 2/1/1'
Adding: Quintum-h323-connect-time : 'h323-connect-time=17:57:16.360 UTC Thu May 
18 2006'
Adding: Quintum-h323-setup-time : 'h323-setup-time=17:57:09.155 UTC Thu May 18 
2006'
Adding: Acct-Output-Octets : 0
Adding: Quintum-h323-call-type : 'h323-call-type=Telephony'
Adding: Acct-Delay-Time : 0
Adding: Quintum-h323-gw-id : 'h323-gw-id=DTL'
Adding: Acct-Output-Packets : 0
Adding: Quintum-h323-voice-quality : 'h323-voice-quality=0'
Adding: Quintum-NAS-Port : '0 2/1/1'
Adding: Quintum-AVPair : 'h323-incoming-conf-id=34343663 62353735 31660034 
383463F6'
Adding h323-conf-id: '6741a978 7758c0ed 96365cd8 00232bbe'
Adding Acct-Session-Id: '873f54541f664bb5'
--- preparing packet ---
Preparing authorization request
Preparing accounting request
--- Sending requests ---
Sending request 0
Traceback (most recent call last):
  File "bsdradclient.py", line 245, in <module>
    reply = sendPacket(srv, req[i])
  File "bsdradclient.py", line 84, in sendPacket
    reply = srv.SendPacket(req)
  File "/usr/local/lib/python2.7/site-packages/bsdradius/pyrad/client.py", line 168, in SendPacket
    return self._SendPacket(pkt, self.authport)
  File "/usr/local/lib/python2.7/site-packages/bsdradius/pyrad/client.py", line 133, in _SendPacket
    self._socket.sendto(pkt.RequestPacket(), (self.server, port))
  File "/usr/local/lib/python2.7/site-packages/bsdradius/pyrad/packet.py", line 418, in RequestPacket
    attr=self._PktEncodeAttributes()
  File "/usr/local/lib/python2.7/site-packages/bsdradius/pyrad/packet.py", line 299, in _PktEncodeAttributes
    result+=self._PktEncodeAttribute(code, data)
  File "/usr/local/lib/python2.7/site-packages/bsdradius/pyrad/packet.py", line 292, in _PktEncodeAttribute
    return struct.pack("!BB", key, (len(value)+2))+value
struct.error: ubyte format requires 0 <= number <= 255 

Original issue reported on code.google.com by e.kubra...@gmail.com on 8 May 2011 at 12:24