Commit 55fbefa5 authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes #3733 Added compute_dn methods to systems objects

parent e101b116
......@@ -86,6 +86,12 @@ class componentGeneric extends simplePlugin
$this->attributesAccess['cn']->setUnique(TRUE);
}
/* Returns the dn of the entry */
function compute_dn()
{
return 'cn='.$this->cn.','.get_ou('componentRDN').$this->base;
}
function resetCopyInfos()
{
parent::resetCopyInfos();
......
......@@ -204,6 +204,12 @@ class printgeneric extends plugin
$this->baseSelector->update(TRUE);
}
/* Returns the dn of the entry */
function compute_dn()
{
return 'cn='.$this->cn.','.get_ou('printerRDN').$this->base;
}
function set_acl_base($base)
{
plugin::set_acl_base($base);
......
......@@ -60,6 +60,11 @@ class serverGeneric extends workstationGeneric
);
}
/* Returns the dn of the entry */
function compute_dn()
{
return 'cn='.$this->cn.','.get_ou('serverRDN').$this->base;
}
}
?>
......@@ -130,6 +130,12 @@ class terminalGeneric extends workstationGeneric
$this->attributesInfo['servers']['attrs']['gotoSwapServer']->setChoices($tmp, $tmp_output);
}
/* Returns the dn of the entry */
function compute_dn()
{
return 'cn='.$this->cn.','.get_ou('terminalRDN').$this->base;
}
function execute()
{
/* Create a list of useable servers for the currently selected
......
......@@ -267,6 +267,12 @@ class workstationGeneric extends simplePlugin
$this->prepareSavedAttributes();
}
/* Returns the dn of the entry */
function compute_dn()
{
return 'cn='.$this->cn.','.get_ou('workstationRDN').$this->base;
}
protected function init_server_section()
{
$this->attributesAccess['inheritTimeServer']->setInLdap(FALSE);
......
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