summaryrefslogtreecommitdiff
path: root/hosted-kolab/12-add-sixpack-at-kolabnow.com.sh
blob: 4c799e6fa76dd1b25bf6d4f8750321d39786c6d7 (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=sixpack@kolabnow.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: Joe"
    echo "mailQuota: 2097152"
    echo "sn: Sixpack"
    echo "cn: Joe Sixpack"
    echo "mail: sixpack@kolabnow.com"
    echo "uid: sixpack@kolabnow.com"
    echo "mailHost: localhost"
    echo "nsroledn: cn=active-user,${hosted_domain_rootdn}"
    echo "nsroledn: cn=imap-user,dc=mykolab,dc=com"
    echo "userPassword: ${default_user_password}"
    echo ""
) | ldapadd -x -h ${ldap_host} -D "uid=hosted-kolab-service,ou=Special Users,${rootdn}" -w "${hosted_kolab_service_pw}"