summaryrefslogtreecommitdiff
path: root/hosted-kolab
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-06-12 13:26:41 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-06-12 13:27:51 (GMT)
commiteb68e393a1fa64c772b16e7913151e5769269a6c (patch)
tree00c1f687d4b89811b3f5e53655f80d2b54b030d2 /hosted-kolab
parent9db15b31e539c3119ae71d9f091e7069d1d0a67a (diff)
downloadkolab-scripts-eb68e393a1fa64c772b16e7913151e5769269a6c.tar.gz
Delete some of the useless scripts and add a useful script
Diffstat (limited to 'hosted-kolab')
-rw-r--r--hosted-kolab/05-add-kolabsys.com.sh0
-rw-r--r--hosted-kolab/06-add-demo.kolab.org.sh0
-rw-r--r--hosted-kolab/07-add-kolab.org.sh0
-rwxr-xr-xhosted-kolab/08-restrict-access-to-new-domains.sh5
-rwxr-xr-xhosted-kolab/14-add-hosted-roles.sh33
5 files changed, 33 insertions, 5 deletions
diff --git a/hosted-kolab/05-add-kolabsys.com.sh b/hosted-kolab/05-add-kolabsys.com.sh
deleted file mode 100644
index e69de29..0000000
--- a/hosted-kolab/05-add-kolabsys.com.sh
+++ /dev/null
diff --git a/hosted-kolab/06-add-demo.kolab.org.sh b/hosted-kolab/06-add-demo.kolab.org.sh
deleted file mode 100644
index e69de29..0000000
--- a/hosted-kolab/06-add-demo.kolab.org.sh
+++ /dev/null
diff --git a/hosted-kolab/07-add-kolab.org.sh b/hosted-kolab/07-add-kolab.org.sh
deleted file mode 100644
index e69de29..0000000
--- a/hosted-kolab/07-add-kolab.org.sh
+++ /dev/null
diff --git a/hosted-kolab/08-restrict-access-to-new-domains.sh b/hosted-kolab/08-restrict-access-to-new-domains.sh
deleted file mode 100755
index 0429d2f..0000000
--- a/hosted-kolab/08-restrict-access-to-new-domains.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/bash
-
-./03-prevent-hosted-kolab-service-account-from-reading-domain.sh kolabsys.com
-./03-prevent-hosted-kolab-service-account-from-reading-domain.sh kolab.org
-
diff --git a/hosted-kolab/14-add-hosted-roles.sh b/hosted-kolab/14-add-hosted-roles.sh
new file mode 100755
index 0000000..2482f92
--- /dev/null
+++ b/hosted-kolab/14-add-hosted-roles.sh
@@ -0,0 +1,33 @@
+#!/bin/bash
+
+. ./settings.sh
+
+(
+ echo "dn: cn=IMAPUser,dc=mykolab,dc=com"
+ echo "objectclass: top"
+ echo "objectclass: ldapsubentry"
+ echo "objectclass: nsroledefinition"
+ echo "objectclass: nssimpleroledefinition"
+ echo "objectclass: nsmanagedroledefinition"
+ echo "cn: IMAPUser"
+) | ldapadd -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}"
+
+(
+ echo "dn: cn=ActiveSyncUser,dc=mykolab,dc=com"
+ echo "objectclass: top"
+ echo "objectclass: ldapsubentry"
+ echo "objectclass: nsroledefinition"
+ echo "objectclass: nssimpleroledefinition"
+ echo "objectclass: nsmanagedroledefinition"
+ echo "cn: ActiveSyncUser"
+) | ldapadd -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}"
+
+#(
+# echo "dn: cn=XMPPAccount,dc=mykolab,dc=com"
+# echo "objectclass: top"
+# echo "objectclass: ldapsubentry"
+# echo "objectclass: nsroledefinition"
+# echo "objectclass: nssimpleroledefinition"
+# echo "objectclass: nsmanagedroledefinition"
+# echo "cn: XMMPUser"
+#) | ldapadd -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}"