summaryrefslogtreecommitdiff
path: root/hosted-kolab/11-add-doe-at-mykolab.com.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hosted-kolab/11-add-doe-at-mykolab.com.sh')
-rwxr-xr-xhosted-kolab/11-add-doe-at-mykolab.com.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/hosted-kolab/11-add-doe-at-mykolab.com.sh b/hosted-kolab/11-add-doe-at-mykolab.com.sh
new file mode 100755
index 0000000..9f3cf25
--- /dev/null
+++ b/hosted-kolab/11-add-doe-at-mykolab.com.sh
@@ -0,0 +1,27 @@
+#!/bin/bash
+
+. ./settings.sh
+
+(
+ echo "dn: uid=doe@mykolab.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: Jane"
+ echo "mailQuota: 2097152"
+ echo "sn: Doe"
+ echo "cn: Jane Doe"
+ echo "mail: doe@mykolab.com"
+ echo "uid: doe@mykolab.com"
+ echo "mailHost: localhost"
+ echo "nsroledn: cn=active-user,${hosted_domain_rootdn}"
+ echo "nsroledn: cn=activesync-user,dc=mykolab,dc=com"
+ echo "nsroledn: cn=kolab-user,dc=mykolab,dc=com"
+ echo "userPassword: ${default_user_password}"
+ echo ""
+) | ldapadd -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}"