3 commits - ucs/kolab-ucs-join-script.sh ucs/kolab-ucs-unjoin-script.sh

Christoph Wickert wickert at kolabsys.com
Wed Sep 9 18:29:22 CEST 2015


 ucs/kolab-ucs-join-script.sh   |   54 ++++++++++++++++++++++++++++++++++++-----
 ucs/kolab-ucs-unjoin-script.sh |    2 +
 2 files changed, 50 insertions(+), 6 deletions(-)

New commits:
commit a549a73c5447a97f09cdbfa33d57c6e8e55b2868
Author: Christoph Wickert <wickert at kolabsys.com>
Date:   Wed Sep 9 18:29:16 2015 +0200

    Add smtp access policy settings to UMC (#5134)

diff --git a/ucs/kolab-ucs-join-script.sh b/ucs/kolab-ucs-join-script.sh
index 11e154d..fb4ab77 100755
--- a/ucs/kolab-ucs-join-script.sh
+++ b/ucs/kolab-ucs-join-script.sh
@@ -279,17 +279,58 @@ addUserAttribute KolabVacationNoReactDomain \
 	--append translationShortDescription='"de_DE" "Domains von Abwesenheitsnotiz ausnehmen"' \
 	--set ldapMapping=univentionKolabVacationNoReactDomain
 
+# SMTP Access Policy
+addUserAttribute KolabAllowSMTPSender \
+	"$@" \
+	--set objectClass="kolabInetOrgPerson" \
+	--append module="users/user" \
+	--append module="users/self" \
+	--set groupPosition=21 \
+	--set groupName="SMTP Access" \
+	--append translationGroupName='"de_CH" "SMTP-Zugriff"' \
+	--append translationGroupName='"de_DE" "SMTP-Zugriff"' \
+	--set tabPosition=1 \
+	--set shortDescription="Sender Access List" \
+	--append translationShortDescription='"de_CH" "Liste von Empfängern"' \
+	--append translationShortDescription='"de_DE" "Liste von Empfängern"' \
+	--set longDescription="Wildcards or regular expressions allowed. To reject an address or domain, prefix the entry with -, e.g. -john.doe at example.org. Most accurate policy is applied."\
+	--append translationLongDescription='"de_CH" "Platzhalter oder reguäre Ausdücke erlaubt. Um eine Adresse oder Domäne zu abzuweisen, den Eintrag mit - beginnen, z. B. -max.mustermann at example.org. Die zutreffendste Richtinige wird angewandt."'\
+	--append translationLongDescription='"de_DE" "Platzhalter oder reguäre Ausdücke erlaubt. Um eine Adresse oder Domäne zu abzuweisen, den Eintrag mit - beginnen, z. B. -max.mustermann at example.org. Die zutreffendste Richtinige wird angewandt."'\
+	--set syntax=string \
+	--set multivalue=1 \
+	--set ldapMapping=kolabAllowSMTPSender
+
+addUserAttribute KolabAllowSMTPRecipient \
+	"$@" \
+	--set objectClass="kolabInetOrgPerson" \
+	--append module="users/user" \
+	--append module="users/self" \
+	--set groupPosition=22 \
+	--set groupName="SMTP Access" \
+	--append translationGroupName='"de_CH" "SMTP-Zugriff"' \
+	--append translationGroupName='"de_DE" "SMTP-Zugriff"' \
+	--set tabPosition=1 \
+	--set shortDescription="Recipient(s) Access List" \
+	--append translationShortDescription='"de_CH" "Liste von Adressaten"' \
+	--append translationShortDescription='"de_DE" "Liste von Adressaten"' \
+	--set longDescription="Wildcards or regular expressions allowed. To reject an address or domain, prefix the entry with -, e.g. -john.doe at example.org. Most accurate policy is applied."\
+	--append translationLongDescription='"de_CH" "Platzhalter oder reguäre Ausdücke erlaubt. Um eine Adresse oder Domäne zu abzuweisen, den Eintrag mit - beginnen, z. B. -max.mustermann at example.org. Die zutreffendste Richtinige wird angewandt."'\
+	--append translationLongDescription='"de_DE" "Platzhalter oder reguäre Ausdücke erlaubt. Um eine Adresse oder Domäne zu abzuweisen, den Eintrag mit - beginnen, z. B. -max.mustermann at example.org. Die zutreffendste Richtinige wird angewandt."'\
+	--set syntax=string \
+	--set multivalue=1 \
+	--set ldapMapping=kolabAllowSMTPRecipient
+
 # Delivery
 addUserAttribute KolabDeliveryToFolderName \
 	"$@" \
 	--set objectClass="univentionKolabInetOrgPerson" \
 	--append module="users/user" \
 	--append module="users/self" \
-	--set groupPosition=3 \
+	--set groupPosition=4 \
 	--set groupName="Delivery" \
 	--append translationGroupName='"de_CH" "Zustellung"' \
 	--append translationGroupName='"de_DE" "Zustellung"' \
-	--set tabPosition=21 \
+	--set tabPosition=31 \
 	--set syntax=string \
 	--set multivalue=0 \
 	--set shortDescription="Folder for incoming mail" \
@@ -302,11 +343,11 @@ addUserAttribute KolabDeliveryToFolderActive \
 	--set objectClass="univentionKolabInetOrgPerson" \
 	--append module="users/user" \
 	--append module="users/self" \
-	--set groupPosition=3 \
+	--set groupPosition=4 \
 	--set groupName="Delivery" \
 	--append translationGroupName='"de_CH" "Zustellung"' \
 	--append translationGroupName='"de_DE" "Zustellung"' \
-	--set tabPosition=22 \
+	--set tabPosition=32 \
 	--set syntax=TrueFalseUp \
 	--set multivalue=0 \
 	--set shortDescription="Move incoming mails into chosen folder" \
diff --git a/ucs/kolab-ucs-unjoin-script.sh b/ucs/kolab-ucs-unjoin-script.sh
index 402fb7c..3ab77f1 100755
--- a/ucs/kolab-ucs-unjoin-script.sh
+++ b/ucs/kolab-ucs-unjoin-script.sh
@@ -51,6 +51,8 @@ for ATTRIBUTE in \
 	KolabVacationActive \
 	KolabVacationAddress \
 	KolabVacationNoReactDomain \
+	KolabAllowSMTPSender \
+	KolabAllowSMTPRecipient \
 	KolabDeliveryToFolderName \
 	KolabDeliveryToFolderActive ; \
 do udm settings/extended_attribute remove \


commit aa16abdca5e66dd226c08057c2d75387b07665c6
Author: Christoph Wickert <wickert at kolabsys.com>
Date:   Wed Sep 9 12:47:56 2015 +0200

    Use our own container for KolabEnabled attribute (follow-up to e47070c9)

diff --git a/ucs/kolab-ucs-join-script.sh b/ucs/kolab-ucs-join-script.sh
index bd96201..11e154d 100755
--- a/ucs/kolab-ucs-join-script.sh
+++ b/ucs/kolab-ucs-join-script.sh
@@ -138,7 +138,7 @@ udm settings/extended_attribute create "$@" --ignore_exists \
 	--set multivalue=0 \
 	--set notEditable=0 \
 	--set disableUDMWeb=0 \
-	--position "cn=custom attributes,cn=univention,${ldap_base}"
+	--position "cn=kolab,cn=custom attributes,cn=univention,${ldap_base}"
 
 ### Admin Settings
 # Forwards


commit 0ca21d12fed4865bc271023b554ae83895397a77
Author: Christoph Wickert <wickert at kolabsys.com>
Date:   Wed Sep 9 12:45:41 2015 +0200

    Trivial formating fix

diff --git a/ucs/kolab-ucs-join-script.sh b/ucs/kolab-ucs-join-script.sh
index 6988252..bd96201 100755
--- a/ucs/kolab-ucs-join-script.sh
+++ b/ucs/kolab-ucs-join-script.sh
@@ -88,7 +88,8 @@ shell=$(udm settings/usertemplate list "$@" --filter="cn=$domainname Groupware A
 unixhome=$(udm settings/usertemplate list "$@" --filter="cn=$domainname Groupware Account" | grep ' unixhome:' | sed 's/[^:]*: //;s/^\/home\/$//')
 if [ -z "$mail" -o -z "$shell" -o -z "$unixhome" ]; then
 	udm settings/usertemplate modify --dn "cn=$domainname Groupware Account,cn=templates,cn=univention,$ldap_base" --set univentionMailHomeServer="$hostname.$domainname" --set mailPrimaryAddress="<username>@$domainname" --set e-mail="<username>@$domainname" --set shell="/bin/bash" --set unixhome="/home/<username>"
- fi
+fi
+
 # remove old '$hostname.$domainname Groupware Account' template (#1606)
 udm settings/usertemplate remove --dn "$hostname.$domainname Groupware Account,cn=templates,cn=univention,${ldap_base}" || true
 




More information about the commits mailing list