Error when authenticating user RuckusApi Client when password needs to be hash md5

  • 1
  • Question
  • Updated 3 months ago
  • Acknowledged
I am using an external captive portal and I need for authentication to be passed the password field in md5. The php md5 function is working and is passed via header json, but return error 301. Could anyone help me? I ́m using a Virtual Smart Zone - Essentials.

Follow code below:

   public function login($username, $password, $ue_ip = NULL, $ue_mac = NULL) {
    global $REQUEST_PASSWORD;
    $data = array(
      'Vendor' => 'Ruckus',
      'RequestPassword' => $REQUEST_PASSWORD,
      'APIVersion' => '1.0',
      'RequestCategory' => 'UserOnlineControl',
      'RequestType' => 'Login',
      'UE-IP' => $ue_ip,
      'UE-MAC' => $ue_mac,
      'UE-Proxy' => '0',
      'UE-Username' => $username,
      'UE-Password' => md5($password)
    );
    return $this->apiRequest($data);
  }

Thanks
Henri.
Photo of Henri Alves Godoy

Henri Alves Godoy

  • 1 Post
  • 0 Reply Likes

Posted 3 months ago

  • 1

Be the first to post a reply!