class_freeradiusGroup.inc 2.11 KB
Newer Older
1
2
<?php
/*
3
  This code is part of FusionDirectory (http://www.fusiondirectory.org/)
4

5
  Copyright (C) 2003-2009 GONICUS GmbH
6
  Copyright (C) 2012 WILLIAME Jeremy
7
  Copyright (C) 2011-2020  FusionDirectory
8

9
10
11
12
  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
13

14
15
16
17
  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.
18

19
20
21
22
  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*/
23

24
25
class freeradiusGroup extends simplePlugin
{
26
  protected $displayHeader  = TRUE;
27

28
  static function plInfo (): array
29
  {
30
    return [
31
      'plShortName'     => _('Freeradius'),
32
      'plDescription'   => _('FreeRadius information'),
33
34
      'plIcon'          => 'geticon.php?context=applications&icon=freeradius&size=48',
      'plSmallIcon'     => 'geticon.php?context=applications&icon=freeradius&size=16',
35
36
      'plObjectClass'   => ['radiusprofile'],
      'plObjectType'    => ['group'],
37
      'plProvidedAcls'  => parent::generatePlProvidedAcls(static::getAttributesInfo())
38
    ];
39
40
  }

41
  static function getAttributesInfo (): array
42
  {
43
    return [
44
      'main' => [
45
        'name'  => _('Support 802.1x'),
46
        'attrs' => [
47
          new StringAttribute(
48
49
            _('Tunnel medium type'), _('Name of the tunnel medium type'),
            'radiusTunnelMediumType', TRUE,
Mortier Benoit's avatar
Mortier Benoit committed
50
            'IEEE-802'
51
52
          ),
            new StringAttribute(
53
54
            _('Tunnel type'), _('Name of the tunnel type'),
            'radiusTunnelType', TRUE,
Mortier Benoit's avatar
Mortier Benoit committed
55
            'VLAN'
56
57
          ),
          new StringAttribute(
58
59
60
            _('VLAN id'), _('VLAN identifier'),
            'radiusTunnelPrivateGroupId', FALSE
          ),
61
62
63
        ]
      ],
    ];
64
65
  }
}