PHP/Authencate by NAS: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

18 April 2025

  • curprev 15:2015:20, 18 April 2025Tacoball talk contribs 652 bytes 0 No edit summary
  • curprev 15:1915:19, 18 April 2025Tacoball talk contribs 652 bytes +652 Created page with "<?php require_once 'vendor/autoload.php'; <syntaxhighlight lang="php"> use Dapphp\Radius\Radius; $username = '...'; $password = '...'; $host = '...'; $secret = '...'; $client = new Radius(); $client->setDebug(true); $client->setServer($host) ->setSecret($secret); $client->setMSChapPassword($password); $authenticated = $client->accessRequest($username); if ($authenticated === false) { echo sprintf( "Access-Request failed with error %d (%s).\n",..."