summaryrefslogtreecommitdiff
path: root/standalone-ldap/02-add-cyrus-admin-account.sh
blob: 29b0af4014b33c1c604e12498c189a9b194c3061 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

 . ./settings.sh
(
    echo "dn: uid=cyrus-admin,ou=Special Users,${rootdn}"
    echo "objectclass: top"
    echo "objectclass: inetorgperson"
    echo "objectclass: person"
    echo "uid: cyrus-admin"
    echo "cn: Cyrus Administrator Account"
    echo "sn: Administrator Account"
    echo "givenname: Cyrus"
    echo "userpassword: ${hosted_kolab_service_pw}"
    echo ""
) | ldapadd -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}"