summaryrefslogtreecommitdiff
path: root/hosted-kolab/12-add-sixpack-at-kolabnow.com.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hosted-kolab/12-add-sixpack-at-kolabnow.com.sh')
-rwxr-xr-xhosted-kolab/12-add-sixpack-at-kolabnow.com.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/hosted-kolab/12-add-sixpack-at-kolabnow.com.sh b/hosted-kolab/12-add-sixpack-at-kolabnow.com.sh
new file mode 100755
index 0000000..4c799e6
--- /dev/null
+++ b/hosted-kolab/12-add-sixpack-at-kolabnow.com.sh
@@ -0,0 +1,27 @@
+#!/bin/bash
+
+. ./settings.sh
+
+(
+ echo "dn: uid=sixpack@kolabnow.com,ou=People,${hosted_domain_rootdn}"
+ echo "objectClass: top"
+ echo "objectClass: inetorgperson"
+ echo "objectClass: kolabinetorgperson"
+ echo "objectClass: mailrecipient"
+ echo "objectClass: organizationalperson"
+ echo "objectClass: person"
+ echo "objectClass: country"
+ echo "c: CH"
+ echo "givenName: Joe"
+ echo "mailQuota: 2097152"
+ echo "sn: Sixpack"
+ echo "cn: Joe Sixpack"
+ echo "mail: sixpack@kolabnow.com"
+ echo "uid: sixpack@kolabnow.com"
+ echo "mailHost: localhost"
+ echo "nsroledn: cn=active-user,${hosted_domain_rootdn}"
+ echo "nsroledn: cn=imap-user,dc=mykolab,dc=com"
+ echo "userPassword: ${default_user_password}"
+ echo ""
+) | ldapadd -x -h ${ldap_host} -D "uid=hosted-kolab-service,ou=Special Users,${rootdn}" -w "${hosted_kolab_service_pw}"
+