pyrad icon indicating copy to clipboard operation
pyrad copied to clipboard

Packet Problem

Open mkhforever opened this issue 12 years ago • 0 comments
trafficstars

File "server3.py", line 159, in srv.Run() File "/root/pyrad-2.0/example/pyrad/server.py", line 242, in Run self._ProcessInput(fdo) File "/root/pyrad-2.0/example/pyrad/server.py", line 221, in _ProcessInput self._HandleAuthPacket(pkt) File "server3.py", line 128, in _HandleAuthPacket self.get_password( pkt['User-Name'][0] ) ) File "server3.py", line 105, in validate_mschapv2 return self.add_attributes( reply,pkt ) File "server3.py", line 46, in add_attributes pkt.AddAttribute( pkt[ attr ],attr ) File "/root/pyrad-2.0/example/pyrad/packet.py", line 165, in AddAttribute self.setdefault(key, []).append([value]) TypeError: unhashable type: 'list'

when the client using MS-CHAP2 the python get this error but on PAP does'nt have any problem I decoding MS-CHAP2 password from MS-CHAP2-Response and MS-CHAP-Challenge and when i want to add attribute "MS-CHAP2-Success" to packet and dictionary and send it to Client python get above error. what's the problem?

mkhforever avatar Feb 22 '13 18:02 mkhforever