summaryrefslogtreecommitdiff
path: root/hosted-kolab/10-add-doe-at-kolabnow.com.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hosted-kolab/10-add-doe-at-kolabnow.com.sh')
-rwxr-xr-xhosted-kolab/10-add-doe-at-kolabnow.com.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/hosted-kolab/10-add-doe-at-kolabnow.com.sh b/hosted-kolab/10-add-doe-at-kolabnow.com.sh
new file mode 100755
index 0000000..0b29dc6
--- /dev/null
+++ b/hosted-kolab/10-add-doe-at-kolabnow.com.sh
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+. ./settings.sh
+
+(
+ echo "dn: uid=doe@kolabnow.com,ou=People,${hosted_domain_rootdn}"
+ echo "objectClass: top"
+ echo "objectClass: inetorgperson"
+ echo "objectClass: kolabinetorgperson"
+ echo "objectClass: mailrecipient"
+ echo "objectClass: country"
+ echo "objectClass: organizationalperson"
+ echo "objectClass: person"
+ echo "givenName: Jane"
+ echo "mailQuota: 2097152"
+ echo "c: CH"
+ echo "sn: Doe"
+ echo "cn: Jane Doe"
+ echo "mail: doe@kolabnow.com"
+ echo "uid: doe@kolabnow.com"
+ echo "mailHost: localhost"
+ echo "nsroledn: cn=active-user,${hosted_domain_rootdn}"
+ 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}"