summaryrefslogtreecommitdiff
path: root/standalone-ldap/03-add-cn-kolab-cn-config.sh
diff options
context:
space:
mode:
Diffstat (limited to 'standalone-ldap/03-add-cn-kolab-cn-config.sh')
-rwxr-xr-xstandalone-ldap/03-add-cn-kolab-cn-config.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/standalone-ldap/03-add-cn-kolab-cn-config.sh b/standalone-ldap/03-add-cn-kolab-cn-config.sh
new file mode 100755
index 0000000..a26b446
--- /dev/null
+++ b/standalone-ldap/03-add-cn-kolab-cn-config.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+ . ./settings.sh
+
+(
+ echo "dn: cn=kolab,cn=config"
+ echo "objectclass: top"
+ echo "objectclass: extensibleobject"
+ echo "cn: kolab"
+ echo "aci: (targetattr = \"*\") (version 3.0;acl \"Kolab Services\";allow (read,compare,search)(userdn = \"ldap:///uid=kolab-service,ou=Special Users,${rootdn}\");)"
+ echo ""
+) | ldapadd -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}"