Skip to content
Snippets Groups Projects
Unverified Commit 594c3b86 authored by Tim van Dijen's avatar Tim van Dijen Committed by GitHub
Browse files

Shorthand arrays

parent 088388c0
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ To use this module, enable the radius module by creating a file named ...@@ -14,7 +14,7 @@ To use this module, enable the radius module by creating a file named
authentication source which uses the `radius:Radius` module to authentication source which uses the `radius:Radius` module to
`config/authsources.php`: `config/authsources.php`:
'example-radius' => array( 'example-radius' => [
'radius:Radius', 'radius:Radius',
/* /*
...@@ -24,12 +24,18 @@ authentication source which uses the `radius:Radius` module to ...@@ -24,12 +24,18 @@ authentication source which uses the `radius:Radius` module to
* - port: the port of the radius server. Optional, defaults to 1812. * - port: the port of the radius server. Optional, defaults to 1812.
* - secret: the radius secret to use with this server. Required. * - secret: the radius secret to use with this server. Required.
*/ */
'servers' => array(array('hostname' => 'radius1.example.org', 'servers' => [
'port' => 1812, [
'secret' => 'topsecret'), 'hostname' => 'radius1.example.org',
array('hostname' => 'radius2.example.org', 'port' => 1812,
'port' => 1812, 'secret' => 'topsecret'
'secret' => 'topsecret')), ],
[
'hostname' => 'radius2.example.org',
'port' => 1812,
'secret' => 'topsecret'
]
],
/* /*
* The timeout for contacting the RADIUS server, in seconds. * The timeout for contacting the RADIUS server, in seconds.
...@@ -67,7 +73,7 @@ authentication source which uses the `radius:Radius` module to ...@@ -67,7 +73,7 @@ authentication source which uses the `radius:Radius` module to
* Optional, defaults to NULL. * Optional, defaults to NULL.
*/ */
'username_attribute' => 'eduPersonPrincipalName', 'username_attribute' => 'eduPersonPrincipalName',
), ],
User attributes User attributes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment