summaryrefslogtreecommitdiff
path: root/hosted-kolab
diff options
context:
space:
mode:
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}"