summaryrefslogtreecommitdiff
path: root/hosted-kolab/02-allow-hosted-kolab-service-account-to-list-domains.sh
blob: 3b20b7c85fa12fd423e040e5c547bd5409dcfe85 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

 . ./settings.sh

(
    echo "dn: cn=kolab,cn=config"
    echo "changetype: modify"
    echo "add: aci"
    echo "aci: (targetattr = \"*\") (version 3.0;acl \"Hosted Kolab Services\";allow (read,compare,search)(userdn = \"ldap:///uid=hosted-kolab-service,ou=Special Users,${rootdn}\");)"
    echo ""
) | ldapmodify -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}"