Commit 8db6d7d0 authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes #3496 Added the ejbca tab to systems, renamed ldap field to be more generic

parent f888e12f
......@@ -18,10 +18,10 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*/
class ejbcaAccount extends simplePlugin
class ejbcaCertificates extends simplePlugin
{
var $displayHeader = TRUE;
var $objectclasses = array('fdEjbcaAccount');
var $objectclasses = array('fdEjbcaCertificates');
// The main function : information about attributes
static function getAttributesInfo ()
......@@ -32,8 +32,8 @@ class ejbcaAccount extends simplePlugin
'class' => array('fullwidth'),
'attrs' => array(
new EjbcaUserCertsAttribute(
'', _('Certificates of this user'),
'fdUserCertDN', TRUE
'', _('Certificates associated to this object'),
'fdEjbcaCertDN', TRUE
)
)
)
......@@ -46,11 +46,11 @@ class ejbcaAccount extends simplePlugin
'plShortName' => _('EJBCA'),
'plDescription' => _('Assign EJBCA certificates to a user'),
'plSelfModify' => TRUE,
'plObjectType' => array('user'),
'plObjectType' => array('user','server','workstation','terminal','printer','component','winstation','phone','mobilePhone'),
'plIcon' => 'geticon.php?context=applications&icon=ejbca&size=48',
'plSmallIcon' => 'geticon.php?context=applications&icon=ejbca&size=16',
'plForeignKeys' => array(
'fdUserCertDN' => 'ejbcaCertificate',
'fdEjbcaCertDN' => 'ejbcaCertificate',
),
'plProvidedAcls' => parent::generatePlProvidedAcls(self::getAttributesInfo())
......
......@@ -3,12 +3,12 @@
##
# Attributes
attributetype ( 1.3.6.1.4.1.38414.49.1.1 NAME 'fdUserCertDN'
attributetype ( 1.3.6.1.4.1.38414.49.1.1 NAME 'fdEjbcaCertDN'
DESC 'FusionDirectory - Certificate dn'
EQUALITY caseExactIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26)
# Objectclasses
objectclass (1.3.6.1.4.1.38414.49.2.1 NAME 'fdEjbcaAccount' SUP top AUXILIARY
DESC 'FusionDirectory - User EJBCA tab'
MUST ( fdUserCertDN ) )
objectclass (1.3.6.1.4.1.38414.49.2.1 NAME 'fdEjbcaCertificates' SUP top AUXILIARY
DESC 'FusionDirectory - EJBCA certificate liaison'
MUST ( fdEjbcaCertDN ) )
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