Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#400] Reduce character escaping in example, add note #413

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1201,19 +1201,25 @@ The LDAP password modify operation was successful</screen>
example if you use it as the basis for your script.</para>

<screen>$ dsconfig \
set-access-control-handler-prop \
--remove global-aci:\(targetattr!=\"userPassword\|\|authPassword\|\|changes\|\
\|changeNumber\|\|changeType\|\|changeTime\|\|targetDN\|\|newRDN\|\
\|newSuperior\|\|deleteOldRDN\|\|targetEntryUUID\|\|changeInitiatorsName\|\
\|changeLogCookie\|\|includedAttributes\"\)\(version\ 3.0\;\ acl\ \"Anonymous\
\ read\ access\"\;\ allow\ \(read,search,compare\)\
\ userdn=\"ldap:///anyone\"\;\)\
--hostname opendj.example.com \
--port 4444 \
--bindDN cn=Directory\ Manager \
--bindPassword password \
--trustAll \
--no-prompt</screen>
set-access-control-handler-prop \
--remove=global-aci:'(targetattr!="userPassword||authPassword||changes||
changeNumber||changeType||changeTime||targetDN||newRDN||
newSuperior||deleteOldRDN||targetEntryUUID||changeInitiatorsName||
changeLogCookie||includedAttributes")(version 3.0; acl "Anonymous
read access"; allow (read,search,compare) userdn="ldap:///anyone";)' \
--hostname=opendj.example.com \
--port=4444 \
--bindDN=cn=Directory\ Manager \
--bindPassword=password \
--trustAll \
--no-prompt</screen>

<note>The above command sequence utilizes single quote encapsulation
of the "<literal>global-aci</literal>" value. This is simply to avoid
the need for extensive character escapes. If the quotes are removed,
the user will need to manually escape certain characters, such as pipe
(<literal>|</literal>) or exclamation points (<literal>!</literal>) to
avoid shell errors.</note>

<para>If the <literal>global-aci</literal> does not match the ACI exactly
then the command fails to remove the value. An alternative approach is to
Expand Down