summaryrefslogtreecommitdiff
path: root/standalone-ldap/02-add-cyrus-admin-account.sh
diff options
context:
space:
mode:
Diffstat (limited to 'standalone-ldap/02-add-cyrus-admin-account.sh')
-rwxr-xr-xstandalone-ldap/02-add-cyrus-admin-account.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/standalone-ldap/02-add-cyrus-admin-account.sh b/standalone-ldap/02-add-cyrus-admin-account.sh
new file mode 100755
index 0000000..29b0af4
--- /dev/null
+++ b/standalone-ldap/02-add-cyrus-admin-account.sh
@@ -0,0 +1,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}"
+