summaryrefslogtreecommitdiff
path: root/hosted-kolab/08-add-doe-at-mgmt-domain-admin.sh
blob: 6ccaee9dc3e4309d1ddc2aeaef95e0b05bc38e31 (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
#!/bin/bash

. ./settings.sh

(
    echo "dn: uid=doe@${domain},ou=People,${rootdn}"
    echo "objectClass: top"
    echo "objectClass: inetorgperson"
    echo "objectClass: kolabinetorgperson"
    echo "objectClass: mailrecipient"
    echo "objectClass: organizationalperson"
    echo "objectClass: person"
    echo "givenName: John"
    echo "mailQuota: 1048576"
    echo "preferredLanguage: en_US"
    echo "sn: Doe"
    echo "cn: John Doe"
    echo "displayName: Doe, John"
    echo "mail: doe@${domain}"
    echo "uid: doe@${domain}"
    echo "mailHost: localhost"
    echo "nsroledn: cn=kolab-admin,${rootdn}"
    echo "userPassword: ${default_user_password}"
    echo ""
) | ldapadd -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}"