Commit 6bc04abf authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes: #1458 Added conf for some plugins

parent 61135422
......@@ -20,7 +20,7 @@
class aliasConfig extends simplePlugin
{
var $objectclasses = array("fusionDirectoryAliasConf");
var $objectclasses = array("fdAliasPluginConf");
static function plInfo()
{
......
......@@ -9,7 +9,7 @@ attributetype ( 1.3.6.1.4.1.38414.11.1.2 NAME 'fdAliasRDN'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
SINGLE-VALUE)
objectclass ( 1.3.6.1.4.1.38414.11.2.3 NAME 'fusionDirectoryAliasConf'
objectclass ( 1.3.6.1.4.1.38414.11.2.3 NAME 'fdAliasPluginConf'
DESC 'FusionDirectory alias plugin configuration'
SUP top AUXILIARY
MUST ( cn )
......
......@@ -20,7 +20,7 @@
class autofsConfig extends simplePlugin
{
var $objectclasses = array("fusionDirectoryAutofsConf");
var $objectclasses = array("fdAutofsPluginConf");
static function plInfo()
{
......
......@@ -11,7 +11,7 @@ attributetype ( 1.3.6.1.4.1.38414.15.1.1 NAME 'fdAutofsRDN'
SINGLE-VALUE)
# Object Class
objectclass ( 1.3.6.1.4.1.38414.15.2.1 NAME 'fusionDirectoryAutofsConf'
objectclass ( 1.3.6.1.4.1.38414.15.2.1 NAME 'fdAutofsPluginConf'
DESC 'FusionDirectory autofs plugin configuration'
SUP top AUXILIARY
MUST ( cn )
......
......@@ -20,7 +20,7 @@
class dsaConfig extends simplePlugin
{
var $objectclasses = array("fusionDirectoryDSAConf");
var $objectclasses = array("fdDsaPluginConf");
static function plInfo()
{
......
......@@ -11,7 +11,7 @@ attributetype ( 1.3.6.1.4.1.38414.13.1.1 NAME 'fdDSARDN'
SINGLE-VALUE)
# Object Class
objectclass ( 1.3.6.1.4.1.38414.13.2.1 NAME 'fusionDirectoryDSAConf'
objectclass ( 1.3.6.1.4.1.38414.13.2.1 NAME 'fdDsaPluginConf'
DESC 'FusionDirectory dsa plugin configuration'
SUP top AUXILIARY
MUST ( cn )
......
<?php
/*
This code is part of FusionDirectory (http://www.fusiondirectory.org/)
Copyright (C) 2013 FusionDirectory
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 faiConfig extends simplePlugin
{
var $objectclasses = array('fdFaiPluginConf');
static function plInfo()
{
return array(
'plShortName' => _('FAI configuration'),
'plDescription' => _('FusionDirectory fai plugin configuration'),
'plSelfModify' => FALSE,
'plCategory' => array('configuration'),
'plObjectType' => array('configuration'),
'plProvidedAcls' => parent::generatePlProvidedAcls(self::getAttributesInfo())
);
}
static function getAttributesInfo ()
{
$attrs = array(
'main' => array(
'name' => _('LDAP tree'),
'attrs' => array(
new StringAttribute (
_('Fai base RDN'), _('Branch in which fai branches will be stored'),
'fdFaiBaseRDN', TRUE,
'ou=fai,ou=configs,ou=systems'
),
)
),
);
$rdns = array('Script', 'Hook', 'Template', 'Variable', 'Profile', 'Package', 'Partition');
foreach ($rdns as $rdn) {
$attrs['main']['attrs'][] = new String(
sprintf(_('Fai %s RDN'), strtolower($rdn)),
sprintf(_('Relative branch in which fai %s will be stored'), _(strtolower($rdn).'s')),
'fdFai'.$rdn.'RDN', TRUE,
'ou='.strtolower($rdn).','
);
}
return $attrs;
}
}
?>
##
## fai-fd-conf.schema - Needed by Fusion Directory for managing fai
##
# Attributes
attributetype ( 1.3.6.1.4.1.38414.25.1.1 NAME 'fdFaiBaseRDN'
DESC 'FusionDirectory - fai base RDN'
EQUALITY caseExactIA5Match
SUBSTR caseExactIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
SINGLE-VALUE)
attributetype ( 1.3.6.1.4.1.38414.25.1.2 NAME 'fdFaiScriptRDN'
DESC 'FusionDirectory - fai Script RDN'
EQUALITY caseExactIA5Match
SUBSTR caseExactIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
SINGLE-VALUE)
attributetype ( 1.3.6.1.4.1.38414.25.1.3 NAME 'fdFaiHookRDN'
DESC 'FusionDirectory - fai Hook RDN'
EQUALITY caseExactIA5Match
SUBSTR caseExactIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
SINGLE-VALUE)
attributetype ( 1.3.6.1.4.1.38414.25.1.4 NAME 'fdFaiTemplateRDN'
DESC 'FusionDirectory - fai Template RDN'
EQUALITY caseExactIA5Match
SUBSTR caseExactIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
SINGLE-VALUE)
attributetype ( 1.3.6.1.4.1.38414.25.1.5 NAME 'fdFaiVariableRDN'
DESC 'FusionDirectory - fai Variable RDN'
EQUALITY caseExactIA5Match
SUBSTR caseExactIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
SINGLE-VALUE)
attributetype ( 1.3.6.1.4.1.38414.25.1.6 NAME 'fdFaiProfileRDN'
DESC 'FusionDirectory - fai Profile RDN'
EQUALITY caseExactIA5Match
SUBSTR caseExactIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
SINGLE-VALUE)
attributetype ( 1.3.6.1.4.1.38414.25.1.7 NAME 'fdFaiPackageRDN'
DESC 'FusionDirectory - fai Package RDN'
EQUALITY caseExactIA5Match
SUBSTR caseExactIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
SINGLE-VALUE)
attributetype ( 1.3.6.1.4.1.38414.25.1.8 NAME 'fdFaiPartitionRDN'
DESC 'FusionDirectory - fai Partition RDN'
EQUALITY caseExactIA5Match
SUBSTR caseExactIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
SINGLE-VALUE)
# Object Class
objectclass ( 1.3.6.1.4.1.38414.25.2.1 NAME 'fdFaiPluginConf'
DESC 'FusionDirectory fai plugin configuration'
SUP top AUXILIARY
MUST ( cn )
MAY ( fdFaiBaseRDN $ fdFaiScriptRDN $ fdFaiHookRDN $
fdFaiTemplateRDN $ fdFaiVariableRDN $ fdFaiProfileRDN $
fdFaiPackageRDN $ fdFaiPartitionRDN ) )
<?php
/*
This code is part of FusionDirectory (http://www.fusiondirectory.org/)
Copyright (C) 2013 FusionDirectory
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 faxConfig extends simplePlugin
{
var $objectclasses = array('fdFaxPluginConf');
static function plInfo()
{
return array(
'plShortName' => _('Fax configuration'),
'plDescription' => _('FusionDirectory fax plugin configuration'),
'plSelfModify' => FALSE,
'plCategory' => array('configuration'),
'plObjectType' => array('smallConfig'),
'plProvidedAcls' => parent::generatePlProvidedAcls(self::getAttributesInfo())
);
}
static function getAttributesInfo ()
{
return array(
'main' => array(
'name' => _('LDAP tree'),
'attrs' => array(
new StringAttribute (
_('Fax RDN'), _('Branch in which fax blocklists will be stored'),
'fdFaxBlocklistRDN', TRUE,
'ou=blocklists'
),
)
),
);
}
}
?>
##
## fax-fd-conf.schema - Needed by Fusion Directory for managing fax
##
# Attributes
attributetype ( 1.3.6.1.4.1.38414.24.1.1 NAME 'fdFaxBlocklistRDN'
DESC 'FusionDirectory - fax blocklist RDN'
EQUALITY caseExactIA5Match
SUBSTR caseExactIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
SINGLE-VALUE)
# Object Class
objectclass ( 1.3.6.1.4.1.38414.24.2.1 NAME 'fdFaxPluginConf'
DESC 'FusionDirectory fax plugin configuration'
SUP top AUXILIARY
MUST ( cn )
MAY ( fdFaxBlocklistRDN ) )
......@@ -20,7 +20,7 @@
class mailPluginConfig extends simplePlugin
{
var $objectclasses = array("mailPluginConf");
var $objectclasses = array("fdMailPluginConf");
static function plInfo()
{
......
......@@ -73,7 +73,7 @@ attributetype ( 1.3.6.1.4.1.38414.10.10.9 NAME 'fdMailSharedPrefix'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
# Object Class
objectclass ( 1.3.6.1.4.1.38414.10.2.1 NAME 'mailPluginConf'
objectclass ( 1.3.6.1.4.1.38414.10.2.1 NAME 'fdMailPluginConf'
DESC 'FusionDirectory mail plugin configuration'
SUP top AUXILIARY
MUST ( )
......
......@@ -20,7 +20,7 @@
class netgroupConfig extends simplePlugin
{
var $objectclasses = array("fdNetgroupConf");
var $objectclasses = array('fdNetgroupPluginConf');
static function plInfo()
{
......
......@@ -11,7 +11,7 @@ attributetype ( 1.3.6.1.4.1.38414.22.1.1 NAME 'fdNetgroupRDN'
SINGLE-VALUE)
# Object Class
objectclass ( 1.3.6.1.4.1.38414.22.2.1 NAME 'fdNetgroupConf'
objectclass ( 1.3.6.1.4.1.38414.22.2.1 NAME 'fdNetgroupPluginConf'
DESC 'FusionDirectory netgroup plugin configuration'
SUP top AUXILIARY
MUST ( cn )
......
......@@ -20,7 +20,7 @@
class opsiConfig extends simplePlugin
{
var $objectclasses = array('fdOpsiConf');
var $objectclasses = array('fdOpsiPluginConf');
static function plInfo()
{
......
......@@ -11,7 +11,7 @@ attributetype ( 1.3.6.1.4.1.38414.21.1.1 NAME 'fdOpsiRDN'
SINGLE-VALUE)
# Object Class
objectclass ( 1.3.6.1.4.1.38414.21.2.1 NAME 'fdOpsiConf'
objectclass ( 1.3.6.1.4.1.38414.21.2.1 NAME 'fdOpsiPluginConf'
DESC 'FusionDirectory OPSI plugin configuration'
SUP top AUXILIARY
MUST ( cn )
......
......@@ -20,7 +20,7 @@
class sambaPluginConfig extends simplePlugin
{
var $objectclasses = array("sambaPluginConf");
var $objectclasses = array("fdSambaPluginConf");
static function plInfo()
{
......
......@@ -41,7 +41,7 @@ attributetype ( 1.3.6.1.4.1.38414.9.1.5 NAME 'fdSambaExpirationSync'
# Object Class
objectclass ( 1.3.6.1.4.1.38414.9.2.1 NAME 'sambaPluginConf'
objectclass ( 1.3.6.1.4.1.38414.9.2.1 NAME 'fdSambaPluginConf'
DESC 'FusionDirectory samba plugin configuration'
SUP top AUXILIARY
MUST ( )
......
<?php
/*
This code is part of FusionDirectory (http://www.fusiondirectory.org/)
Copyright (C) 2013 FusionDirectory
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 sudoConfig extends simplePlugin
{
var $objectclasses = array('fdSudoPluginConf');
static function plInfo()
{
return array(
'plShortName' => _('Sudo configuration'),
'plDescription' => _('FusionDirectory sudo plugin configuration'),
'plSelfModify' => FALSE,
'plCategory' => array('configuration'),
'plObjectType' => array('smallConfig'),
'plProvidedAcls' => parent::generatePlProvidedAcls(self::getAttributesInfo())
);
}
static function getAttributesInfo ()
{
return array(
'main' => array(
'name' => _('LDAP tree'),
'attrs' => array(
new StringAttribute (
_('Sudo RDN'), _('Branch in which sudoers will be stored'),
'fdSudoRDN', TRUE,
'ou=sudoers'
),
)
),
);
}
}
?>
##
## sudo-fd-conf.schema - Needed by Fusion Directory for managing sudo
##
# Attributes
attributetype ( 1.3.6.1.4.1.38414.23.1.1 NAME 'fdSudoRDN'
DESC 'FusionDirectory - sudo RDN'
EQUALITY caseExactIA5Match
SUBSTR caseExactIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
SINGLE-VALUE)
# Object Class
objectclass ( 1.3.6.1.4.1.38414.23.2.1 NAME 'fdSudoPluginConf'
DESC 'FusionDirectory sudo plugin configuration'
SUP top AUXILIARY
MUST ( cn )
MAY ( fdSudoRDN ) )
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment