summaryrefslogtreecommitdiff
path: root/hosted-kolab/11-add-sixpack-at-kolabnow.com.sh
blob: aae9225a1e3286356abf06edfbac68fff997cd70 (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
#!/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 "givenName: Joe"
    echo "mailQuota: 1048576"
    echo "preferredLanguage: en_US"
    echo "sn: Sixpack"
    echo "cn: Joe Sixpack"
    echo "displayName: Sixpack, Joe"
    echo "mail: sixpack@kolabnow.com"
    echo "uid: sixpack@kolabnow.com"
    echo "mailHost: localhost"
    echo "userPassword: 741852"
    echo ""
) | ldapadd -x -h ${ldap_host} -D "uid=hosted-kolab-service,ou=Special Users,${rootdn}" -w "${hosted_kolab_service_pw}"