25 lines
3.3 KiB
Text
25 lines
3.3 KiB
Text
|
<span class="hljs-comment"># Quoted and unquoted properties</span>
|
||
|
<span class="hljs-keyword">dsconfig</span> <span class="hljs-built_in">create-client-connection-policy</span> \
|
||
|
<span class="hljs-built_in">--policy-name</span> <span class="hljs-string">"Restrictive Client Connection Policy"</span> \
|
||
|
<span class="hljs-built_in">--set</span> <span class="hljs-string">"description:Restrictive Client Connection Policy"</span> \
|
||
|
<span class="hljs-built_in">--set</span> <span class="hljs-string">enabled:true </span><span class="hljs-built_in">--set</span> <span class="hljs-string">evaluation-order-index:1000 </span>\
|
||
|
<span class="hljs-built_in">--set</span> <span class="hljs-string">"connection-criteria:User.0 Connection Criteria"</span> \
|
||
|
<span class="hljs-built_in">--set</span> <span class="hljs-string">maximum-concurrent-connections:2 </span>\
|
||
|
<span class="hljs-built_in">--set</span> <span class="hljs-string">"maximum-connection-duration:1 s"</span> \
|
||
|
<span class="hljs-built_in">--set</span> <span class="hljs-string">"maximum-idle-connection-duration:1 s"</span> \
|
||
|
<span class="hljs-built_in">--set</span> <span class="hljs-string">maximum-operation-count-per-connection:1000
|
||
|
</span><span class="hljs-comment"># dsconfig keyword is optional</span>
|
||
|
<span class="hljs-built_in">create-client-connection-policy</span> \
|
||
|
<span class="hljs-built_in">--policy-name</span> <span class="hljs-string">"Another Client Connection Policy"</span> \
|
||
|
<span class="hljs-built_in">--set</span> <span class="hljs-string">enabled:true </span><span class="hljs-built_in">--set</span> <span class="hljs-string">evaluation-order-index:100 </span>\
|
||
|
<span class="hljs-built_in">--set</span> <span class="hljs-string">'connection-criteria:User.1 Connection Criteria'</span> \
|
||
|
<span class="hljs-comment"># Property without value</span>
|
||
|
<span class="hljs-built_in">--reset</span> <span class="hljs-string">maximum-concurrent-</span><span class="hljs-string">connections
|
||
|
</span><span class="hljs-comment"># Unquoted property, quoted property value</span>
|
||
|
<span class="hljs-keyword">dsconfig</span> <span class="hljs-built_in">set-access-control-handler-prop</span> \
|
||
|
<span class="hljs-built_in">--add</span> <span class="hljs-string">global-aci:</span><span class="hljs-string">'(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";)'</span> \
|
||
|
<span class="hljs-built_in">--add</span> <span class="hljs-string">global-aci:</span><span class="hljs-string">'(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";)'</span> \
|
||
|
<span class="hljs-built_in">--remove</span> <span class="hljs-string">global-aci:</span><span class="hljs-string">'(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";)'</span>
|
||
|
<span class="hljs-comment"># No continuation</span>
|
||
|
<span class="hljs-keyword">dsconfig</span> <span class="hljs-built_in">delete-log-publisher</span> <span class="hljs-built_in">--publisher-name</span> <span class="hljs-string">"File-Based Error Logger"</span>
|