added used attributes

This commit is contained in:
Roland Gruber 2008-12-07 19:13:50 +00:00
parent abeb9bc3da
commit 3282a234bb
4 changed files with 7 additions and 5 deletions

View File

@ -59,7 +59,7 @@ class ddns extends baseModule {
// managed object classes
$return['objectClasses'] = array();
// managed attributes
$return['attributes'] = array();
$return['attributes'] = array('dhcpOption', 'dhcpStatements');
// help Entries
$return['help'] = array(
'active' => array(

View File

@ -122,7 +122,7 @@ class dhcp_settings extends baseModule {
// managed object classes
$return['objectClasses'] = array('top', 'dhcpOptions');
// managed attributes
$return['attributes'] = array('cn');
$return['attributes'] = array('cn', 'dhcpOption');
// help Entries
$return['help'] = array(
'domainname' => array(
@ -252,7 +252,9 @@ By default, the nodes are configured as H-Nodes which fits for small networks. I
public function save_attributes() {
if ($_SESSION['account']->getAccountModule('dhcp_settings')->dn!=$_SESSION['config']->get_suffix('dhcp')) {
// Standard Things
$this->attributes['objectClass'][2] = "dhcpSubnet";
if (!in_array_ignore_case("dhcpSubnet", $this->attributes['objectClass'])) {
$this->attributes['objectClass'][] = "dhcpSubnet";
}
// sort to array:
if (is_array($this->attributes['dhcpOption'])) {
$i = 0;

View File

@ -70,7 +70,7 @@ class fixed_ip extends baseModule {
// managed object classes
$return['objectClasses'] = array();
// managed attributes
$return['attributes'] = array();
$return['attributes'] = array('dhcpOption');
// help Entries
$return['help'] = array(
'pc' => array(

View File

@ -71,7 +71,7 @@ class range extends baseModule {
// managed object classes
$return['objectClasses'] = array();
// managed attributes
$return['attributes'] = array();
$return['attributes'] = array('dhcpOption');
// help Entries
$return['help'] = array(
'range_from' => array(