doc/sample-insert-group_types.php lib/locale
Jeroen van Meeuwen
vanmeeuwen at kolabsys.com
Sat Apr 13 17:50:14 CEST 2013
doc/sample-insert-group_types.php | 60 +++++++++++++++++++++++++++++++++++++-
lib/locale/en_US.php | 2 +
2 files changed, 61 insertions(+), 1 deletion(-)
New commits:
commit c16856397ee135169f8868ef655174b2f47d0971
Author: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen at kolabsys.com>
Date: Sat Apr 13 17:49:47 2013 +0200
Illustrate the fact Kolab Distribution Groups may also be restricted or explicitly allowed access to/from
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
),
diff --git a/lib/locale/en_US.php b/lib/locale/en_US.php
index 640bddb..c8ea9fe 100644
--- a/lib/locale/en_US.php
+++ b/lib/locale/en_US.php
@@ -62,6 +62,8 @@ $LANG['group.cn'] = 'Common name';
$LANG['group.delete.success'] = 'Group deleted successfully.';
$LANG['group.edit.success'] = 'Group updated successfully.';
$LANG['group.gidnumber'] = 'Primary group number';
+$LANG['group.kolaballowsmtprecipient'] = 'Recipient(s) Access List';
+$LANG['group.kolaballowsmtpsender'] = 'Sender Access List';
$LANG['group.list'] = 'Groups List';
$LANG['group.mail'] = 'Primary Email Address';
$LANG['group.member'] = 'Member(s)';
More information about the commits
mailing list