summaryrefslogtreecommitdiff
path: root/hosted-kolab/09-add-doe-at-kolabnow.com.sh
blob: a057d7f669cd4736ffe18507d0707a0d1b720739 (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=doe@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: Jane"
    echo "mailQuota: 1048576"
    echo "preferredLanguage: en_US"
    echo "sn: Doe"
    echo "cn: Jane Doe"
    echo "displayName: Doe, Jane"
    echo "mail: doe@kolabnow.com"
    echo "uid: doe@kolabnow.com"
    echo "mailHost: localhost"
    echo "userPassword: ${default_user_password}"
    echo ""
) | ldapadd -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}"