added dummy getProfileOptions() functions

This commit is contained in:
Roland Gruber 2004-03-09 12:03:39 +00:00
parent ae8810b4a9
commit 03d4b4ecf4
9 changed files with 74 additions and 0 deletions

View File

@ -198,6 +198,10 @@ class account {
return 0; return 0;
} }
function get_profileOptions($scope) {
if ($scope == "host") return array();
} }
}
?> ?>

View File

@ -302,6 +302,11 @@ class inetOrgPerson {
function display_html_delete($post, $profile=false) { function display_html_delete($post, $profile=false) {
return 0; return 0;
} }
function get_profileOptions($scope) {
if ($scope == "user") return array();
} }
}
?> ?>

View File

@ -669,6 +669,15 @@ class posixAccount {
} }
function get_profileOptions($scope) {
$return = array();
// TODO fill in correct groups
$return[] = array (0 => array ('kind' => 'text', 'text' => _('Primary group')),
1 => array ('kind' => 'select', 'name' => 'gidNumber', 'options' => array('g1', 'g2', 'g3'), 'options_selected' => array(), 'size' => 1),
2 => array ('kind' => 'help', 'value' => 'gidNumber'));
return $return;
} }
}
?> ?>

View File

@ -585,6 +585,14 @@ class posixGroup {
return $return; return $return;
} }
function get_profileOptions($scope) {
$return = array();
$return[] = array (0 => array ( 'kind' => 'text', 'text' => _("Groupname")),
1 => array ('kind' => 'input', 'name' => 'cn', 'type' => 'text', 'size' => '20', 'maxlength' => '20'),
2 => array ('kind' => 'help', 'value' => 'cn'));
return $return;
} }
}
?> ?>

View File

@ -293,6 +293,11 @@ class quota {
return 0; return 0;
} }
function get_profileOptions($scope) {
$return = array();
return $return;
} }
}
?> ?>

View File

@ -606,6 +606,14 @@ class sambaAccount {
return $return; return $return;
} }
function get_profileOptions($scope) {
$return = array();
$return[] = array ( 0 => array ( 'kind' => 'text', 'text' => _('Domain') ),
1 => array ( 'kind' => 'input', 'type' => 'text', 'name' => 'domain', 'size' => '20', 'maxlength' => '255', 'value' => $this->attributes['domain'][0]),
2 => array ( 'kind' => 'help', 'value' => 'domain' ));
return $return;
} }
}
?> ?>

View File

@ -305,6 +305,15 @@ class sambaGroupMapping {
return 0; return 0;
} }
function get_profileOptions($scope) {
$return = array();
// TODO fill in correct domains
$return[] = array (0 => array ('kind' => 'text', 'text' => _('Domain')),
1 => array ('kind' => 'select', 'name' => 'sambaDomainName', 'options' => $sambaDomainNames),
2 => array ('kind' => 'help', 'value' => 'sambaDomainName' ));
return $return;
} }
}
?> ?>

View File

@ -621,6 +621,15 @@ class sambaSamAccount {
return $return; return $return;
} }
function get_profileOptions($scope) {
$return = array();
// TODO fill in correct groups
$return[] = array(0 => array('kind' => 'text', 'text' => _('Domain')),
1 => array('kind' => 'select', 'name' => 'sambaDomainName', 'options' => $sambaDomainNames),
2 => array('kind' => 'help', 'value' => 'sambaDomainName' ));
return $return;
} }
}
?> ?>

View File

@ -256,6 +256,23 @@ class shadowAccount {
return 0; return 0;
} }
function get_profileOptions($scope) {
$return = array();
$return[] = array ( 0 => array ( 'kind' => 'text', 'text' => _('Password warn') ),
1 => array ( 'kind' => 'input', 'name' => 'shadowWarning', 'type' => 'text', 'size' => '4', 'maxlength' => '4', 'value' => $this->attributes['shadowWarning'][0] ),
2 => array ( 'kind' => 'help', 'value' => 'shadowWarning' ));
$return[] = array ( 0 => array ( 'kind' => 'text', 'text' => _('Password expire') ),
1 => array ( 'kind' => 'input', 'name' => 'shadowInactive', 'type' => 'text', 'size' => '4', 'maxlength' => '4', 'value' => $this->attributes['shadowInactive'][0] ),
2 => array ( 'kind' => 'help', 'value' => 'shadowInactive' ));
$return[] = array ( 0 => array ( 'kind' => 'text', 'text' => _('Maximum password age') ),
1 => array ( 'kind' => 'input', 'name' => 'shadowMax', 'type' => 'text', 'size' => '5', 'maxlength' => '5', 'value' => $this->attributes['shadowMax'][0] ),
2 => array ( 'kind' => 'help', 'value' => 'shadowMax' ));
$return[] = array ( 0 => array ( 'kind' => 'text', 'text' => _('Minimum password age') ),
1 => array ( 'kind' => 'input', 'name' => 'shadowMin', 'type' => 'text', 'size' => '5', 'maxlength' => '5', 'value' => $this->attributes['shadowMin'][0] ),
2 => array ( 'kind' => 'help', 'value' => 'shadowMin' ));
return $return;
} }
}
?> ?>