2017 © Pedro Peláez
 

library zf2-radius-authentication-adapter

RADIUS authentication adapter for Zend Framework 2

image

fzipi/zf2-radius-authentication-adapter

RADIUS authentication adapter for Zend Framework 2

  • Friday, November 7, 2014
  • by fzipi
  • Repository
  • 1 Watchers
  • 1 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Radius authentication adapter for Zend Framework 2

Build Status, (*1)

Forked originally from MT4SoftwareStudio/orbini-auth-radius (for zf1). Added functionality for Radius realms., (*2)

Requirements

  • Zend Framework 2 Authentication framework
  • PHP PECL Radius extension

Installation

Add this repository to your composer.json:, (*3)

{
    "require": {
        "fzipi/zf2-radius-authentication-adapter": "~0.0"
    }
}

then composer update., (*4)

Usage

<?php

use Fing\Authentication\Adapter\Radius as RadiusAdapter;
use Zend\Authentication;

$servers = array(
            'realm' => "myrealm",
            'servers' => array(
                array(
                    'hostname' => 'radius01.example.com',
                    'port' => 1812,
                    'secret' => '<verysecretstringforthisserver>',
                ),
                array(
                    'hostname' => 'radius02.example.com',
                    'port' => 18120, // not default port
                    'secret' => '<anotherverysecretstring>',
                    'timeout' => 10,
                    'maxTries' => 2
                )
            )
        );

//Create our adapter passing one server (up to 10 can be passed)
$adapter =  new RadiusAdapter($options, $username, $password);

//Authenticate
$result = $adapter->authenticate();

//Using Radius REALMS
$adapter->setRealm("routers"); // if not set in options config previously

$access = $adapter->authenticate()

/** Plugged in to Zend\Authentication **/

// Assuming we're still using the $adapter constructed above:

$authService = new Authentication\AuthenticationService(
    new Authentication\Storage\NonPersistent(),
    $adapter
);

$result = $authService->authenticate();

Troubleshooting

Did you remember to set your RADIUS secret accordingly?, (*5)

The Versions

07/11 2014

dev-master

9999999-dev

RADIUS authentication adapter for Zend Framework 2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Felipe Zipitria

07/11 2014

dev-attributes

dev-attributes

RADIUS authentication adapter for Zend Framework 2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Felipe Zipitria

05/11 2014

0.1.2

0.1.2.0

RADIUS authentication adapter for Zend Framework 2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Felipe Zipitria

04/11 2014

0.1.1

0.1.1.0

RADIUS authentication adapter for Zend Framework 2

  Sources   Download

GPL-2.0

The Requires

 

by Felipe Zipitria

04/11 2014

0.1

0.1.0.0

RADIUS authentication adapter for Zend Framework 2

  Sources   Download

GPL-2.0

The Requires

 

by Felipe Zipitria