summaryrefslogtreecommitdiff
path: root/hosted-kolab/14-add-hosted-roles.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hosted-kolab/14-add-hosted-roles.sh')
-rwxr-xr-xhosted-kolab/14-add-hosted-roles.sh33
1 files changed, 33 insertions, 0 deletions
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}"