default.txt 1.6 KB

123456789101112131415161718192021222324
  1. # Quoted and unquoted properties
  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. # dsconfig keyword is optional
  12. create-client-connection-policy \
  13. --policy-name "Another Client Connection Policy" \
  14. --set enabled:true --set evaluation-order-index:100 \
  15. --set 'connection-criteria:User.1 Connection Criteria' \
  16. # Property without value
  17. --reset maximum-concurrent-connections
  18. # Unquoted property, quoted property value
  19. dsconfig set-access-control-handler-prop \
  20. --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";)' \
  21. --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";)' \
  22. --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";)'
  23. # No continuation
  24. dsconfig delete-log-publisher --publisher-name "File-Based Error Logger"