class_supannConfig.inc 1.91 KB
Newer Older
1
2
3
<?php
/*
  This code is part of FusionDirectory (http://www.fusiondirectory.org/)
Mortier Benoit's avatar
Mortier Benoit committed
4
  Copyright (C) 2013-2016 FusionDirectory
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

  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.

  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.

  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.
*/

class supannConfig extends simplePlugin
{
23
  var $objectclasses  = array('fdSupannPluginConf');
24
25
26
27

  static function plInfo()
  {
    return array(
28
29
30
31
      'plShortName'     => _('SUPANN configuration'),
      'plDescription'   => _('FusionDirectory SUPANN plugin configuration'),
      'plCategory'      => array('configuration'),
      'plObjectType'    => array('smallConfig'),
32

33
      'plProvidedAcls'  => parent::generatePlProvidedAcls(static::getAttributesInfo())
34
35
36
37
38
39
40
    );
  }

  static function getAttributesInfo ()
  {
    return array(
      'main' => array(
41
        'name'  => _('SUPANN'),
42
43
44
45
46
47
        'attrs' => array(
          new StringAttribute (
            _('SUPANN RDN'), _('Branch in which SUPANN structures will be stored'),
            'fdSupannStructuresRDN', TRUE,
            'ou=structures'
          ),
48
49
50
51
52
          new BooleanAttribute (
            _('SUPANN mail for recovery'), _('Allow the use of mail addresses from the personal mail address field from SUPANN account for password recovery'),
            'fdSupannPasswordRecovery', FALSE,
            TRUE
          ),
53
54
55
56
57
58
        )
      ),
    );
  }
}
?>