summaryrefslogtreecommitdiff
path: root/hosted-kolab/11-add-doe-at-mykolab.com.sh
blob: 9f3cf25ffdb9919360a94a06003c1843ba87ad9f (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
#!/bin/bash

. ./settings.sh

(
    echo "dn: uid=doe@mykolab.com,ou=People,${hosted_domain_rootdn}"
    echo "objectClass: top"
    echo "objectClass: inetorgperson"
    echo "objectClass: kolabinetorgperson"
    echo "objectClass: mailrecipient"
    echo "objectClass: organizationalperson"
    echo "objectClass: person"
    echo "objectClass: country"
    echo "c: CH"
    echo "givenName: Jane"
    echo "mailQuota: 2097152"
    echo "sn: Doe"
    echo "cn: Jane Doe"
    echo "mail: doe@mykolab.com"
    echo "uid: doe@mykolab.com"
    echo "mailHost: localhost"
    echo "nsroledn: cn=active-user,${hosted_domain_rootdn}"
    echo "nsroledn: cn=activesync-user,dc=mykolab,dc=com"
    echo "nsroledn: cn=kolab-user,dc=mykolab,dc=com"
    echo "userPassword: ${default_user_password}"
    echo ""
) | ldapadd -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}"