summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-07-26 17:45:05 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-07-26 17:45:05 (GMT)
commitc1167afc4632dea7b0976e533df17f06eb0a7183 (patch)
treed39e318e69ac9142fbe46478d9dea4ee1f99f13e
parent199045a281dc4e824e00af81c785df88c4c40b9d (diff)
parent1eb587f55c2f06c398bf2bc9ee51158dd7bdbc0f (diff)
downloadkolab-scripts-c1167afc4632dea7b0976e533df17f06eb0a7183.tar.gz
Merge branch 'master' of ssh://git.kolab.org/git/kolab-scripts
-rwxr-xr-xkolab-2.3-for-ucs-3/01-install-enterprise-edition.sh22
-rwxr-xr-xucs-3.0/tests/15-set-debuglevels.sh4
-rwxr-xr-xucs-3.0/tests/16-create-john-no-mailserver.sh26
-rwxr-xr-xucs-3.0/tests/17-set-john-mailserver.sh21
4 files changed, 73 insertions, 0 deletions
diff --git a/kolab-2.3-for-ucs-3/01-install-enterprise-edition.sh b/kolab-2.3-for-ucs-3/01-install-enterprise-edition.sh
new file mode 100755
index 0000000..852b7ed
--- /dev/null
+++ b/kolab-2.3-for-ucs-3/01-install-enterprise-edition.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+ucr set \
+ repository/online/component/kolab-2.3=enabled \
+ repository/online/component/kolab-2.3/description="Kolab Sytems Kolab 2.3 Public" \
+ repository/online/component/kolab-2.3/server="mirror.kolabsys.com" \
+ repository/online/component/kolab-2.3/prefix="pub/ucs" \
+ repository/online/component/kolab-2.3/version="current" \
+ repository/online/component/kolab-2.3/parts="maintained"
+
+univention-install kolab-2.3-enterprise-release
+
+while [ ! -f /etc/apt/certs/mirror.kolabsys.com.client.pem ]; do
+ echo "Install the client SSL certificate to:"
+ echo ""
+ echo " /etc/apt/certs/mirror.kolabsys.com.client.pem"
+ echo ""
+ echo "and press Enter"
+ read ANSWER
+done
+
+univention-install kolabsys-kolab2
diff --git a/ucs-3.0/tests/15-set-debuglevels.sh b/ucs-3.0/tests/15-set-debuglevels.sh
new file mode 100755
index 0000000..7a5d67a
--- /dev/null
+++ b/ucs-3.0/tests/15-set-debuglevels.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+ucr set listener/debug/level='3'
+/etc/init.d/univention-directory-listener restart
diff --git a/ucs-3.0/tests/16-create-john-no-mailserver.sh b/ucs-3.0/tests/16-create-john-no-mailserver.sh
new file mode 100755
index 0000000..146c072
--- /dev/null
+++ b/ucs-3.0/tests/16-create-john-no-mailserver.sh
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+eval "$(ucr shell)"
+
+if [ "${server_role}" != "domaincontroller_master" ]; then
+ echo "SKIPPED - This system is not a master domain controller."
+ exit 0
+fi
+
+imap_server=$(ldapsearch -x -H ldap://${ldap_server_name}:${ldap_server_port} -D "${ldap_hostdn}" -y /etc/machine.secret -LLL "(univentionService=IMAP)" cn | grep ^cn | awk '{print $2}' | head -n 1)
+
+if [ -z "${imap_server}" ]; then
+ echo "FAILED - No IMAP server found"
+ exit 1
+fi
+
+univention-directory-manager users/user create \
+ --set password=Welcome2KolabSystems \
+ --set "username=doe" \
+ --set "lastname=Doe" \
+ --set "e-mail=doe@${domainname}" \
+ --set "mailPrimaryAddress=doe@${domainname}" \
+ --set "mailAlternativeAddress=ceo@${domainname}" \
+ --position "cn=users,${ldap_base}"
+
+ldapsearch -x -H ldap://${ldap_server_name}:${ldap_server_port} -b "${ldap_base}" -LLL -D "${ldap_hostdn}" -y /etc/machine.secret "(uid=doe)" entrydn univentionMailHomeServer
diff --git a/ucs-3.0/tests/17-set-john-mailserver.sh b/ucs-3.0/tests/17-set-john-mailserver.sh
new file mode 100755
index 0000000..5249278
--- /dev/null
+++ b/ucs-3.0/tests/17-set-john-mailserver.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+eval "$(ucr shell)"
+
+if [ "${server_role}" != "domaincontroller_master" ]; then
+ echo "SKIPPED - This system is not a master domain controller."
+ exit 0
+fi
+
+imap_server=$(ldapsearch -x -H ldap://${ldap_server_name}:${ldap_server_port} -D "${ldap_hostdn}" -y /etc/machine.secret -LLL "(univentionService=IMAP)" cn | grep ^cn | awk '{print $2}' | head -n 1)
+
+if [ -z "${imap_server}" ]; then
+ echo "FAILED - No IMAP server found"
+ exit 1
+fi
+
+univention-directory-manager users/user modify \
+ --dn="uid=doe,cn=users,${ldap_base}" \
+ --set "mailHomeServer=${imap_server}.${domainname}"
+
+ldapsearch -x -H ldap://${ldap_server_name}:${ldap_server_port} -b "${ldap_base}" -LLL -D "${ldap_hostdn}" -y /etc/machine.secret "(uid=doe)" entrydn univentionMailHomeServer