Radius auth to RSA/ACE Server fails

From: Date: Tue, 15 Apr 2003 22:42:44 +0000
Subject: Radius auth to RSA/ACE Server fails
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-15194@lists.php.net to get a copy of this message
Howdy, I am trying to get the Auth_Radius package to work talking to an RSA/ACE Radius server which is in front of an RSA/ACE SecurID server. I keep getting invalid packet errors from the RADIUS debugging log. [quote] ace_radius_receive.cpp(174): Received auth packet ace_radius_database.cpp(415): Attribute 32 Length 23 ace_radius_database.cpp(415): Attribute 6 Length 6 ace_radius_database.cpp(415): Attribute 7 Length 6 ace_radius_database.cpp(415): Attribute 31 Length 11 ace_radius_database.cpp(415): Attribute 1 Length 10 ace_radius_database.cpp(415): Attribute 1 Length 10 ace_radius_database.cpp(447): Duplicate user name ace_radius_database.cpp(415): Attribute 3 Length 19 ace_radius_database.cpp(415): Attribute 60 Length 12 ace_radius_database.cpp(544): No user or password in the packet ace_radius_database.cpp(551): Discarding invalid packet ace_radius_receive.cpp(174): Received auth packet ace_radius_receive.cpp(185): Discarded auth packet [/quote] my php code [code] //includes here blah blah function my_auth($username, $passcode) { $rauth = new Auth_RADIUS_CHAP_MD5($username, $passcode); $rauth->addServer(RADIUS_SERVER, RADIUS_PORT, RADIUS_SECRET); $rauth->password = $passcode; $crypt = new Crypt_CHAP_MD5; $crypt->password = $passcode; $rauth->chapid = $crypt->chapid; $rauth->response = $crypt->challengeResponse(); if (!$rauth->start()) { echo ("Radius Start: ".$rauth->getError() ); $ret = FALSE; } $result = $rauth->send(); if (PEAR::isError($result)) { echo ("Radius send failed: ".$result->getMessage() ); $ret = FALSE; } else if ($result === true) { echo ("Auth was successfull"); $ret = TRUE; } else { echo("Failed to auth"); $ret = FALSE; } // get attributes, even if auth failed if (!$rauth->getAttributes()) { echo("Radius getAttributes: ".$rauth->getError() ); $ret = FALSE; } else { $rauth->dumpAttributes(); } $rauth->close(); return $ret; } [/code] the output Radius send failed: Error sending request: No valid RADIUS responses received. I am using php 4.3.1 with the PECL radius extensions version 1.2, and the latest Auth_radius and CRYPT_Chap pear packages Any ideas? Thanks Walt

« previous php.pear.dev (#15194) next »