default.txt 1.5 KB

12345678910111213141516171819202122
  1. # Create client connection policies
  2. dsconfig create-client-connection-policy \
  3. --policy-name "Restrictive Client Connection Policy" \
  4. --set "description:Restrictive Client Connection Policy" \
  5. --set enabled:true --set evaluation-order-index:1000 \
  6. --set "connection-criteria:User.0 Connection Criteria" \
  7. --set maximum-concurrent-connections:2 \
  8. --set "maximum-connection-duration:1 s" \
  9. --set "maximum-idle-connection-duration:1 s" \
  10. --set maximum-operation-count-per-connection:1000
  11. create-client-connection-policy \
  12. --policy-name "Another Client Connection Policy" \
  13. --set enabled:true --set evaluation-order-index:100 \
  14. --set 'connection-criteria:User.1 Connection Criteria' \
  15. --reset maximum-concurrent-connections
  16. # Configure global ACIs
  17. dsconfig set-access-control-handler-prop \
  18. --add global-aci:'(target="ldap:///cn=config")(targetattr="*")(version 3.0; acl "Allow access to the config tree by cn=admin,c=us"; allow(all) groupdn="ldap:///cn=directory administrators,ou=groups,c=us";)' \
  19. --add global-aci:'(target="ldap:///cn=monitor")(targetattr="*")(version 3.0; acl "Allow access to the monitor tree by cn=admin,c=us"; allow(all) groupdn="ldap:///cn=directory administrators,ou=groups,c=us";)' \
  20. --remove global-aci:'(target="ldap:///cn=alerts")(targetattr="*")(version 3.0; acl "Allow access to the alerts tree by cn=admin,c=us"; allow(all) groupdn="ldap:///cn=directory administrators,ou=groups,c=us";)'
  21. # Delete error logger
  22. dsconfig delete-log-publisher --publisher-name "File-Based Error Logger"