summaryrefslogtreecommitdiff
path: root/hosted-kolab/14-add-hosted-roles.sh
blob: 2482f925e903cf9ec6101839c3116f2b30ea1ee6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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}"