summaryrefslogtreecommitdiff
path: root/hosted-kolab/09-allow-add-users-by-hosted-kolab-service-account.sh
blob: 0cfad05369f5c3380b703a7270d8f0c78e64196b (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

 . ./settings.sh

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