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

Fixes #4184 Improved foreignKeys of posixAccount

Showing with 27 additions and 19 deletions
+27 -19
......@@ -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);
......
  • bmortier @bmortier

    mentioned in issue #1372

    By Jonathan Swaelens on 2017-09-02T15:24:11 (imported from GitLab)

    ·

    mentioned in issue #1372

    By Jonathan Swaelens on 2017-09-02T15:24:11 (imported from GitLab)

    Toggle commit list
Supports Markdown
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