summaryrefslogtreecommitdiff
path: root/standalone-ldap/01-add-kolab-service-account.sh
blob: 775233478443303e65dd8780f75397ab53eae157 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

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