Changeset View
Changeset View
Standalone View
Standalone View
docker/kolab/utils/15-create-hosted-domain.sh
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | ( | ||||
echo "aci: (targetattr = \"*\") (version 3.0;acl \"Service Search Access\";allow (read,compare,search)(userdn = \"ldap:///uid=kolab-service,ou=Special Users,${rootdn}\");)" | echo "aci: (targetattr = \"*\") (version 3.0;acl \"Service Search Access\";allow (read,compare,search)(userdn = \"ldap:///uid=kolab-service,ou=Special Users,${rootdn}\");)" | ||||
echo "objectClass: top" | echo "objectClass: top" | ||||
echo "objectClass: domain" | echo "objectClass: domain" | ||||
echo "dc: $(echo ${hosted_domain} | cut -d'.' -f 1)" | echo "dc: $(echo ${hosted_domain} | cut -d'.' -f 1)" | ||||
echo "" | echo "" | ||||
) | ldapadd -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}" | ) | ldapadd -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}" | ||||
( | ( | ||||
for role in "2fa-user" "activesync-user" "imap-user"; do | |||||
echo "cn=${role},${hosted_domain_rootdn}" | |||||
echo "cn: ${role}" | |||||
echo "description: ${role} role" | |||||
echo "objectclass: top" | |||||
echo "objectclass: ldapsubentry" | |||||
echo "objectclass: nsmanagedroledefinition" | |||||
echo "objectclass: nsroledefinition" | |||||
echo "objectclass: nssimpleroledefinition" | |||||
echo "" | |||||
done | |||||
echo "dn: ou=Groups,${hosted_domain_rootdn}" | echo "dn: ou=Groups,${hosted_domain_rootdn}" | ||||
echo "ou: Groups" | echo "ou: Groups" | ||||
echo "objectClass: top" | echo "objectClass: top" | ||||
echo "objectClass: organizationalunit" | echo "objectClass: organizationalunit" | ||||
echo "" | echo "" | ||||
echo "dn: ou=People,${hosted_domain_rootdn}" | echo "dn: ou=People,${hosted_domain_rootdn}" | ||||
echo "aci: (targetattr = \"*\") (version 3.0;acl \"Hosted Kolab Services\";allow (all)(userdn = \"ldap:///uid=hosted-kolab-service,ou=Special Users,${rootdn}\");)" | echo "aci: (targetattr = \"*\") (version 3.0;acl \"Hosted Kolab Services\";allow (all)(userdn = \"ldap:///uid=hosted-kolab-service,ou=Special Users,${rootdn}\");)" | ||||
Show All 24 Lines |