Powered by Jitbit .Net Forum free trial version. dismiss

HomeBugs

Bugs

Attribute concatenation problem Messages in this topic - RSS

raven_fox
raven_fox
Posts: 50


12.04.2020
raven_fox
raven_fox
Posts: 50
HI, Ver 5.3.4.17

In this version of the program, the logic for issuing attribute concatenation has changed.
As written in the manual, the attribute must be string, then you can use the construction y;z.


Yes, it works, but not like before, when it comes to concatenating hex values.
Suppose we send 2;4 - we get 2 parameters, one byte 0x32; 0x34. Need 4 bytes in the attribute, then you suggest using the integer type. But concatenation is not possible with this type.


I could send a sequence earlier
0x00000000; 0x00000001 and get exactly 2 attributes of the same name with the values ​​0x00000000 and 0x00000001.
Now this is not possible.




By the way, I tried to run the latest version of the program on Windows 2008R2 - it gives an error. The program does not start.
0 link
Admin
Admin
Administrator
Posts: 4992


12.04.2020
Admin
Admin
Administrator
Posts: 4992
Hi,

Which attribute to you use to set values of 0x00000000; 0x00000001?


Which exact error have you got on Windows 2008R2?


Best regards,


Yasin KAPLAN
0 link
raven_fox
raven_fox
Posts: 50


12.04.2020
raven_fox
raven_fox
Posts: 50
ietf|15 Login-Service

I need to give some values ​​of this attribute. Previously, the attribute 0x00000000;0x00000034 of the string type was perfectly transmitted as 2 attributes of 4 bytes long each, now this does not work. If you give in decimal form - 0; 52, then 2 attributes with a length of one byte will be transmitted, and this does not fit.

I suggest the impossibility of launching the latest version of the program on win2008R2 to discuss a little later, because i need to delete the old program. Thanks.
0 link
Admin
Admin
Administrator
Posts: 4992


13.04.2020
Admin
Admin
Administrator
Posts: 4992
Please apply update at https://www.kaplansoft.com/tekradius/release/TekRADIUSLT-Update.zip and try again.
0 link
raven_fox
raven_fox
Posts: 50


13.04.2020
raven_fox
raven_fox
Posts: 50
String type attribute concatenation incorrect
0x00000000;0x00000034 -- transfer 2 AVP , Each should be 4 !!!!!!!!! bytes long; you have more -- '0x' is translated in ASCII and an extra byte is added at the end.
AVP=TYPE-LENGTH-ATTRIBUTE =0f-06-00000000
cancatenate AVP;AVP 0f-06-00000000 0f-06-00000034

error whith you
0f-0c-30783030303030303030 0f-0c-30783030303030303334

NUL != '0'
0 link
Admin
Admin
Administrator
Posts: 4992


13.04.2020
Admin
Admin
Administrator
Posts: 4992
A Wireshark trace would be very helpful
0 link
raven_fox
raven_fox
Posts: 50


13.04.2020
raven_fox
raven_fox
Posts: 50
Attribute Value Pairs
AVP: t=Acct-Session-Id(44) l=38 val=tmss-ft0925525500000000080edc8000011
Type: 44
Length: 38
Acct-Session-Id: tmss-ft0925525500000000080edc8000011
AVP: t=Login-Service(15) l=12 val=[unhandled integer length(10)]
Type: 15
Length: 12
AVP: t=Login-Service(15) l=12 val=[unhandled integer length(10)]
Type: 15
Length: 12



0000 2c 26 74 6d 73 73 2d 66 74 30 39 32 35 35 32 35 ,&tmss-ft0925525
0010 35 30 30 30 30 30 30 30 30 30 38 30 65 64 63 38 500000000080edc8
0020 30 30 30 30 31 31 0f 0c 30 78 30 30 30 30 30 30 000011..0x000000
0030 30 30 0f 0c 30 78 30 30 30 30 30 30 33 34 00..0x00000034
0 link
Admin
Admin
Administrator
Posts: 4992


13.04.2020
Admin
Admin
Administrator
Posts: 4992
Have you edited RADIUS dictionary and changed data type for Login-Service attribute?
0 link
raven_fox
raven_fox
Posts: 50


13.04.2020
raven_fox
raven_fox
Posts: 50
yes, of course.Otherwise do not pass attributes with a length of 4 bytes
0 link
Admin
Admin
Administrator
Posts: 4992


13.04.2020
Admin
Admin
Administrator
Posts: 4992
I could finally replicate the problem and fixed it. Please apply update at https://www.kaplansoft.com/tekradius/release/TekRADIUSLT-Update.zip and try again.
0 link
raven_fox
raven_fox
Posts: 50


13.04.2020
raven_fox
raven_fox
Posts: 50
Everything works, thank you so much
0 link
Admin
Admin
Administrator
Posts: 4992


13.04.2020
Admin
Admin
Administrator
Posts: 4992
You welcome
0 link






Powered by Jitbit Forum 8.3.8.0 © 2006-2013 Jitbit Software