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.sh18
1 files changed, 14 insertions, 4 deletions
diff --git a/hosted-kolab/14-add-hosted-roles.sh b/hosted-kolab/14-add-hosted-roles.sh
index 2482f92..42e17bf 100755
--- a/hosted-kolab/14-add-hosted-roles.sh
+++ b/hosted-kolab/14-add-hosted-roles.sh
@@ -3,23 +3,33 @@
. ./settings.sh
(
- echo "dn: cn=IMAPUser,dc=mykolab,dc=com"
+ echo "dn: cn=activesync-user,${hosted_domain_rootdn}"
echo "objectclass: top"
echo "objectclass: ldapsubentry"
echo "objectclass: nsroledefinition"
echo "objectclass: nssimpleroledefinition"
echo "objectclass: nsmanagedroledefinition"
- echo "cn: IMAPUser"
+ echo "cn: activesync-user"
) | ldapadd -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}"
(
- echo "dn: cn=ActiveSyncUser,dc=mykolab,dc=com"
+ echo "dn: cn=imap-user,${hosted_domain_rootdn}"
echo "objectclass: top"
echo "objectclass: ldapsubentry"
echo "objectclass: nsroledefinition"
echo "objectclass: nssimpleroledefinition"
echo "objectclass: nsmanagedroledefinition"
- echo "cn: ActiveSyncUser"
+ echo "cn: imap-user"
+) | ldapadd -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}"
+
+(
+ echo "dn: cn=kolab-user,${hosted_domain_rootdn}"
+ echo "objectclass: top"
+ echo "objectclass: ldapsubentry"
+ echo "objectclass: nsroledefinition"
+ echo "objectclass: nssimpleroledefinition"
+ echo "objectclass: nsmanagedroledefinition"
+ echo "cn: kolab-user"
) | ldapadd -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}"
#(