summaryrefslogtreecommitdiff
path: root/hosted-kolab/01-add-hosted-kolab-service-account.sh
diff options
context:
space:
mode:
authorroot <root@kolab.example.org>2012-09-06 11:37:45 (GMT)
committerroot <root@kolab.example.org>2012-09-06 11:37:45 (GMT)
commitca1dbbd1c050ab3ab15af37000fd2abc836c5782 (patch)
tree8bbcd02535074d0a104d6066078f56d21aef98de /hosted-kolab/01-add-hosted-kolab-service-account.sh
parentd0cbf8bd59e5386912d0ddfda8ac5d7774eba3ce (diff)
downloadkolab-scripts-ca1dbbd1c050ab3ab15af37000fd2abc836c5782.tar.gz
Add some hosted-kolab scripts
Diffstat (limited to 'hosted-kolab/01-add-hosted-kolab-service-account.sh')
-rwxr-xr-xhosted-kolab/01-add-hosted-kolab-service-account.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/hosted-kolab/01-add-hosted-kolab-service-account.sh b/hosted-kolab/01-add-hosted-kolab-service-account.sh
new file mode 100755
index 0000000..6af577f
--- /dev/null
+++ b/hosted-kolab/01-add-hosted-kolab-service-account.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+ . ./settings.sh
+(
+ echo "dn: uid=hosted-kolab-service,ou=Special Users,${rootdn}"
+ echo "objectclass: top"
+ echo "objectclass: inetorgperson"
+ echo "objectclass: person"
+ echo "uid: hosted-kolab-service"
+ echo "cn: Hosted Kolab Service Account"
+ echo "sn: Service Account"
+ echo "givenname: Hosted Kolab"
+ echo "userpassword: ${hosted_kolab_service_pw}"
+ echo ""
+) | ldapadd -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}"
+