summaryrefslogtreecommitdiff
path: root/hosted-kolab/02-add-ou-Domains.sh
blob: e29dde9662f289f20b966c23d9d8dd850c3cbe1c (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

 . ./settings.sh
(
    echo "dn: ou=Domains,${rootdn}"
    echo "aci: (targetattr = \"*\") (version 3.0;acl \"Kolab Services\";allow (read,compare,search)(userdn = \"ldap:///uid=kolab-service,ou=Special Users,${rootdn}\");)"
    echo "ou: Domains"
    echo "objectClass: top"
    echo "objectClass: organizationalunit"
    echo ""
) | ldapadd -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}"