[Nagiosplug-devel] check_radius not 64bit safe
Folkert van Heusden
f.j.vanheusden at amc.nl
Thu Nov 3 03:22:55 CET 2005
Hi,
When I compile the nagios plugins set with 64 bit enabled, the
check_radius plugin failes: authentications always return "auth failed".
Using tcpdump I found the following:
11:27:37.371469 ncs-new.45922 > fido.datametrics: rad-access-req 74 [id 53] Attr[ Service_type{length 8 != 4} User{test-local at amc} Pass NAS_ipaddr{length 8 != 4} ] (DF)
0x0000 4500 0066 0000 4000 4011 d69e 9175 20fb E..f.. at .@....u..
0x0010 9175 2003 b362 066d 0052 7ad6 0135 004a .u...b.m.Rz..5.J
0x0020 47ef fbf3 5fd5 e621 2c0d 2809 3702 9667 G..._..!,.(.7..g
0x0030 060a 0000 0008 0000 0000 0110 7465 7374 ............test
0x0040 2d6c 6f63 616c 4061 6d63 0212 6728 91a6 -local at amc..g(..
0x0050 8bfe 32da e9f9 0378 18dd a861 040a 9175 ..2....x...a...u
0x0060 20fb 0000 0000 ......
11:27:37.376928 fido.datametrics > ncs-new.45922: rad-access-reject 36 [id 53] Attr[ Reply{Request Denied} ] (DF)
0x0000 4500 0040 0032 4000 4011 d692 9175 2003 E.. at .2@. at ....u..
0x0010 9175 20fb 066d b362 002c ec8a 0335 0024 .u...m.b.,...5.$
0x0020 ecbd 46cd 14b8 093a 6712 e0b0 ecdf a427 ..F....:g......'
0x0030 1210 5265 7175 6573 7420 4465 6e69 6564 ..Request.Denied
as you can see, some fields have invalid lengths (8 -indicating a 64bit int- instead of 4 bytes).
Compling the plugin in 32-bit mode (-m32) makes it work correctly.
Folkert van Heusden
--
Try MultiTail! Multiple windows with logfiles, filtered with regular
expressions, colored output, etc. etc. www.vanheusden.com/multitail/
----------------------------------------------------------------------
Get your PGP/GPG key signed at www.biglumber.com!
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 282 bytes
Desc: Digital signature
URL: <http://nagios-plugins.org/archive/devel/attachments/20051103/04c73e4e/attachment.sig>
More information about the Devel
mailing list