summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-03-14 19:21:21 +0000
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-03-14 19:21:21 +0000
commit7c341d219ba8917e5a07e19c7f2f71560dfbc883 (patch)
treefb9be69d717caf4ad3da3fe6d30afe06db581d31
parent0c8180530747333cd9ee26fd0bf08e02d7987ba9 (diff)
downloadwebadmin-7c341d219ba8917e5a07e19c7f2f71560dfbc883.tar.gz
Provide form_value.generate_mailhost() (dummy function)
-rw-r--r--lib/api/kolab_api_service_form_value.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/api/kolab_api_service_form_value.php b/lib/api/kolab_api_service_form_value.php
index 7e80dc6..c778e5e 100644
--- a/lib/api/kolab_api_service_form_value.php
+++ b/lib/api/kolab_api_service_form_value.php
@@ -185,6 +185,14 @@ class kolab_api_service_form_value extends kolab_api_service
}
}
+ private function generate_mailhost($postdata, $attribs = array())
+ {
+ if (isset($attribs['auto_form_fields']) && isset($attribs['auto_form_fields']['uidnumber'])) {
+ // This value is determined by the Kolab Daemon
+ return array('mailhost' => '');
+ }
+ }
+
private function generate_password($postdata, $attribs = array())
{
exec("head -c 200 /dev/urandom | tr -dc _A-Z-a-z-0-9 | head -c15", $userpassword_plain);