PHP Classes
elePHPant
Icontem

File: radius.demo.www.authenticate.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of André Liechti  >  Pure PHP radius class  >  radius.demo.www.authenticate.php  >  Download  
File: radius.demo.www.authenticate.php
Role: Example script
Content type: text/plain
Description: Demo of a WWW Authentication using a Radius server
Class: Pure PHP radius class
Authenticate users with a RADIUS server
Author: By
Last change:
Date: 7 years ago
Size: 384 bytes
 

Contents

Class file image Download
<?php

$custom_auth_realm
= "Pure PHP radius class";
$custom_auth_timeout = 15*60; // Custom authentification timeout without activity (default is 900 seconds)
$custom_ip_radius_server = '127.0.0.1';
$custom_shared_secret = 'secret';

require_once(
"radius.www.authenticate.php");

echo
"User <strong>".$_SERVER['PHP_AUTH_USER']."</strong> authenticated.";

?>