summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-04-13 17:49:47 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-04-13 17:49:47 +0200
commitc16856397ee135169f8868ef655174b2f47d0971 (patch)
tree90df6e08c989a3759972c7d9500a62abc798a1c3 /doc
parentc088a04b6a5128bf0a3f23c0e4ba56e2c6041343 (diff)
downloadwebadmin-c16856397ee135169f8868ef655174b2f47d0971.tar.gz
Illustrate the fact Kolab Distribution Groups may also be restricted or explicitly allowed access to/from
Diffstat (limited to 'doc')
-rw-r--r--doc/sample-insert-group_types.php60
1 files changed, 59 insertions, 1 deletions
diff --git a/doc/sample-insert-group_types.php b/doc/sample-insert-group_types.php
index c9d38f6..e06de33 100644
--- a/doc/sample-insert-group_types.php
+++ b/doc/sample-insert-group_types.php
@@ -28,6 +28,55 @@
),
"form_fields" => Array(
"cn" => Array(),
+ "kolaballowsmtprecipient" => Array(
+ "type" => "list",
+ "optional" => true,
+ ),
+ "kolaballowsmtpsender" => Array(
+ "type" => "list",
+ "optional" => true,
+ ),
+ "uniquemember" => Array(
+ "type" => "list",
+ "autocomplete" => true,
+ "optional" => true,
+ ),
+ ),
+ );
+
+ $result = $db->query("INSERT INTO `group_types` (`key`, `name`, `description`, `attributes`) " .
+ "VALUES ('kolab','Kolab Distribution Group (Static)', 'A static Kolab Distribution Group (with mail address)'," .
+ "'" . json_encode($attributes) . "')");
+
+ $attributes = Array(
+ "auto_form_fields" => Array(
+ "mail" => Array(
+ "data" => Array(
+ "cn",
+ ),
+ ),
+ ),
+ "fields" => Array(
+ "objectclass" => Array(
+ "top",
+ "groupofurls",
+ "kolabgroupofuniquenames",
+ ),
+ ),
+ "form_fields" => Array(
+ "cn" => Array(),
+ "kolaballowsmtprecipient" => Array(
+ "type" => "list",
+ "optional" => true,
+ ),
+ "kolaballowsmtpsender" => Array(
+ "type" => "list",
+ "optional" => true,
+ ),
+ "memberurl" => Array(
+ "type" => "ldap_url",
+ "optional" => true,
+ ),
"uniquemember" => Array(
"type" => "list",
"autocomplete" => true,
@@ -37,9 +86,10 @@
);
$result = $db->query("INSERT INTO `group_types` (`key`, `name`, `description`, `attributes`) " .
- "VALUES ('kolab','Kolab Distribution Group', 'A Kolab Distribution Group (with mail address)'," .
+ "VALUES ('kolab_dynamic','Kolab Distribution Group (Dynamic)', 'A dynamic Kolab Distribution Group (with mail address)'," .
"'" . json_encode($attributes) . "')");
+
$attributes = Array(
"auto_form_fields" => Array(
"gidnumber" => Array(),
@@ -84,6 +134,14 @@
),
"form_fields" => Array(
"cn" => Array(),
+ "kolaballowsmtprecipient" => Array(
+ "type" => "list",
+ "optional" => true,
+ ),
+ "kolaballowsmtpsender" => Array(
+ "type" => "list",
+ "optional" => true,
+ ),
"mail" => Array(
"optional" => true
),