From e2c1420e25645c8a54e34bb4bf399a241a02d64b Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 14 Mar 2004 17:33:05 +0000 Subject: [PATCH] added check_profileOptions() dummy --- lam/lib/modules/account.inc | 7 +++++++ lam/lib/modules/inetOrgPerson.inc | 7 +++++++ lam/lib/modules/posixAccount.inc | 7 +++++++ lam/lib/modules/posixGroup.inc | 7 +++++++ lam/lib/modules/quota.inc | 7 +++++++ lam/lib/modules/sambaAccount.inc | 7 +++++++ lam/lib/modules/sambaGroupMapping.inc | 7 +++++++ lam/lib/modules/sambaSamAccount.inc | 9 ++++++++- lam/lib/modules/shadowAccount.inc | 7 +++++++ 9 files changed, 64 insertions(+), 1 deletion(-) diff --git a/lam/lib/modules/account.inc b/lam/lib/modules/account.inc index 31e3fcd0..9e601836 100644 --- a/lam/lib/modules/account.inc +++ b/lam/lib/modules/account.inc @@ -202,6 +202,13 @@ class account { if ($scope == "host") return array(); } + // checks if the values of a new or modified profile are valid + // $scope: the account type (user, group, host, ...) + // $options: a hash array (name => value) containing the options + function check_profileOptions($scope, $options) { + return array(); + } + } ?> diff --git a/lam/lib/modules/inetOrgPerson.inc b/lam/lib/modules/inetOrgPerson.inc index ef3ec8be..b5afcbc0 100644 --- a/lam/lib/modules/inetOrgPerson.inc +++ b/lam/lib/modules/inetOrgPerson.inc @@ -307,6 +307,13 @@ class inetOrgPerson { if ($scope == "user") return array(); } + // checks if the values of a new or modified profile are valid + // $scope: the account type (user, group, host, ...) + // $options: a hash array (name => value) containing the options + function check_profileOptions($scope, $options) { + return array(); + } + } ?> diff --git a/lam/lib/modules/posixAccount.inc b/lam/lib/modules/posixAccount.inc index f1602d73..edc736bd 100644 --- a/lam/lib/modules/posixAccount.inc +++ b/lam/lib/modules/posixAccount.inc @@ -678,6 +678,13 @@ class posixAccount { return $return; } + // checks if the values of a new or modified profile are valid + // $scope: the account type (user, group, host, ...) + // $options: a hash array (name => value) containing the options + function check_profileOptions($scope, $options) { + return array(); + } + } ?> diff --git a/lam/lib/modules/posixGroup.inc b/lam/lib/modules/posixGroup.inc index a298c2b0..ab400914 100644 --- a/lam/lib/modules/posixGroup.inc +++ b/lam/lib/modules/posixGroup.inc @@ -593,6 +593,13 @@ class posixGroup { return $return; } + // checks if the values of a new or modified profile are valid + // $scope: the account type (user, group, host, ...) + // $options: a hash array (name => value) containing the options + function check_profileOptions($scope, $options) { + return array(); + } + } ?> diff --git a/lam/lib/modules/quota.inc b/lam/lib/modules/quota.inc index 7610da04..f823b95e 100644 --- a/lam/lib/modules/quota.inc +++ b/lam/lib/modules/quota.inc @@ -298,6 +298,13 @@ class quota { return $return; } + // checks if the values of a new or modified profile are valid + // $scope: the account type (user, group, host, ...) + // $options: a hash array (name => value) containing the options + function check_profileOptions($scope, $options) { + return array(); + } + } ?> diff --git a/lam/lib/modules/sambaAccount.inc b/lam/lib/modules/sambaAccount.inc index 4662212f..17620b5b 100644 --- a/lam/lib/modules/sambaAccount.inc +++ b/lam/lib/modules/sambaAccount.inc @@ -614,6 +614,13 @@ class sambaAccount { return $return; } + // checks if the values of a new or modified profile are valid + // $scope: the account type (user, group, host, ...) + // $options: a hash array (name => value) containing the options + function check_profileOptions($scope, $options) { + return array(); + } + } ?> diff --git a/lam/lib/modules/sambaGroupMapping.inc b/lam/lib/modules/sambaGroupMapping.inc index 66a71fec..4bb0d8a2 100644 --- a/lam/lib/modules/sambaGroupMapping.inc +++ b/lam/lib/modules/sambaGroupMapping.inc @@ -314,6 +314,13 @@ class sambaGroupMapping { return $return; } + // checks if the values of a new or modified profile are valid + // $scope: the account type (user, group, host, ...) + // $options: a hash array (name => value) containing the options + function check_profileOptions($scope, $options) { + return array(); + } + } ?> diff --git a/lam/lib/modules/sambaSamAccount.inc b/lam/lib/modules/sambaSamAccount.inc index 56800108..ead01b99 100644 --- a/lam/lib/modules/sambaSamAccount.inc +++ b/lam/lib/modules/sambaSamAccount.inc @@ -625,11 +625,18 @@ class sambaSamAccount { $return = array(); // TODO fill in correct groups $return[] = array(0 => array('kind' => 'text', 'text' => _('Domain')), - 1 => array('kind' => 'select', 'name' => 'sambaDomainName', 'options' => $sambaDomainNames), + 1 => array('kind' => 'select', 'name' => 'sambaDomainName', 'options' => $sambaDomainNames, 'size' => 1, 'options' => array("d1", "d2"), 'options_selected' => array()), 2 => array('kind' => 'help', 'value' => 'sambaDomainName' )); return $return; } + // checks if the values of a new or modified profile are valid + // $scope: the account type (user, group, host, ...) + // $options: a hash array (name => value) containing the options + function check_profileOptions($scope, $options) { + return array(); + } + } ?> diff --git a/lam/lib/modules/shadowAccount.inc b/lam/lib/modules/shadowAccount.inc index 15168546..a6735587 100644 --- a/lam/lib/modules/shadowAccount.inc +++ b/lam/lib/modules/shadowAccount.inc @@ -273,6 +273,13 @@ class shadowAccount { return $return; } + // checks if the values of a new or modified profile are valid + // $scope: the account type (user, group, host, ...) + // $options: a hash array (name => value) containing the options + function check_profileOptions($scope, $options) { + return array(); + } + } ?>