Commit bb346bb0 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #4184 Improved foreignKeys of posixAccount

parent e638191a
......@@ -68,7 +68,33 @@ class EpochDaysDateAttribute extends DateAttribute
class posixAccount extends simplePlugin
{
var $displayHeader = TRUE;
var $objectclasses = array("posixAccount", "shadowAccount");
var $objectclasses = array('posixAccount', 'shadowAccount');
static function plInfo()
{
return array(
'plShortName' => _('Unix'),
'plDescription' => _('Edit users POSIX settings'),
'plIcon' => 'geticon.php?context=applications&icon=os-linux&size=48',
'plSmallIcon' => 'geticon.php?context=applications&icon=os-linux&size=16',
'plSelfModify' => TRUE,
'plPriority' => 2,
'plObjectType' => array('user'),
'plForeignKeys' => array(
'gidNumber' => array(
array('group','gidNumber'),
array('mixedGroup','gidNumber'),
),
'host' => array(
array('serverGeneric'),
array('workstationGeneric'),
array('terminalGeneric'),
)
),
'plProvidedAcls' => parent::generatePlProvidedAcls(self::getAttributesInfo())
);
}
// The main function : information about attributes
static function getAttributesInfo ()
......@@ -178,24 +204,6 @@ class posixAccount extends simplePlugin
);
}
static function plInfo()
{
return array(
'plShortName' => _('Unix'),
'plDescription' => _('Edit users POSIX settings'),
'plIcon' => 'geticon.php?context=applications&icon=os-linux&size=48',
'plSmallIcon' => 'geticon.php?context=applications&icon=os-linux&size=16',
'plSelfModify' => TRUE,
'plPriority' => 2,
'plObjectType' => array('user'),
'plForeignKeys' => array(
'gidNumber' => array('group','gidNumber')
),
'plProvidedAcls' => parent::generatePlProvidedAcls(self::getAttributesInfo())
);
}
function __construct (&$config, $dn = NULL, $object = NULL)
{
parent::__construct($config, $dn, $object);
......
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