Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Ethereal-dev: [Ethereal-dev] RADIUS User Password

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Dave Wapstra <dave@xxxxxxxxx>
Date: Sat, 20 Mar 2004 15:45:48 +0100
All,

The User-Password attribute in a RADIUS packet is normally encrypted. The RADIUS dissector has defined the User Password attribute as a RADIUS_STRING. This should be a BINSTRING imho. GTK chokes on this when trying to display the user password contents.

I have tried to build ethereal on win32 (cygwin) to verify the result of this change, however I got stuck at the last step, linking to ethereal.exe... I'll post a new message about that.

--- packet-radius.c-old Mon Feb  9 03:18:31 2004
+++ packet-radius.c     Sat Mar 20 15:10:50 2004
@@ -483,7 +483,7 @@
static const radius_attr_info radius_attrib[] =
{
  {1,  RADIUS_STRING,          "User Name", NULL},
-  {2,  RADIUS_STRING,          "User Password", NULL},
+  {2,  RADIUS_BINSTRING,       "User Password", NULL},
  {3,  RADIUS_BINSTRING,       "CHAP Password", NULL},
  {4,  RADIUS_IP_ADDRESS,      "NAS IP Address", NULL},
  {5,  RADIUS_INTEGER4,        "NAS Port", NULL},


Regards,
Dave