Skip to content

Commit 409574e

Browse files
author
Open Identity Platform Community
committed
upload OpenDJ docs after deploy 7f9b45d1378434ccc3251acd160ef4d10d5f1cde
1 parent 38f2393 commit 409574e

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

opendj/modules/ROOT/attachments/captured-global-aci-edits.sh

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# information: "Portions Copyright [year] [name of copyright owner]".
1212
#
1313
# Portions Copyright 2015 ForgeRock AS.
14+
# Portions Copyright 2024 3A Systems LLC.
1415

1516
# Captured dsconfig command to replace anonymous read access with authenticated access.
1617
# Edit this script to match your deployment.
@@ -24,15 +25,23 @@
2425
# If the global-aci settings are different on your OpenDJ server,
2526
# generate this script for that server as described in the documentation.
2627
#
28+
# The following command sequence utilizes single quote encapsulation
29+
# of the `global-aci` value. This is simply to avoid
30+
# the need for extensive character escapes. If the quotes are removed,
31+
# the user will need to manually escape certain characters, such as pipe
32+
# (`|`) or exclamation points (`!`) to
33+
# avoid shell errors.
34+
2735
dsconfig set-access-control-handler-prop \
28-
--remove global-aci:\(targetattr!=\"userPassword\|\|authPassword\|\|debugsearchindex\|\|changes\|\|changeNumber\|\|changeType\|\|changeTime\|\|targetDN\|\|newRDN\|\|newSuperior\|\|deleteOldRDN\"\)\(version\ 3.0\;\ acl\ \"Anonymous\ read\ access\"\;\ allow\ \(read,search,compare\)\ userdn=\"ldap:///anyone\"\;\) \
29-
--remove global-aci:\(targetattr=\"createTimestamp\|\|creatorsName\|\|modifiersName\|\|modifyTimestamp\|\|entryDN\|\|entryUUID\|\|subschemaSubentry\|\|etag\|\|governingStructureRule\|\|structuralObjectClass\|\|hasSubordinates\|\|numSubordinates\"\)\(version\ 3.0\;\ acl\ \"User-Visible\ Operational\ Attributes\"\;\ allow\ \(read,search,compare\)\ userdn=\"ldap:///anyone\"\;\) \
30-
--add global-aci:\(targetattr!=\"userPassword\|\|authPassword\|\|debugsearchindex\|\|changes\|\|changeNumber\|\|changeType\|\|changeTime\|\|targetDN\|\|newRDN\|\|newSuperior\|\|deleteOldRDN\"\)\(version\ 3.0\;\ acl\ \"Authenticated\ read\ access\"\;\ allow\(read,search,compare\)\ userdn=\"ldap:///all\"\;\) \
31-
--add global-aci:\(targetattr=\"createTimestamp\|\|creatorsName\|\|modifiersName\|\|modifyTimestamp\|\|entryDN\|\|entryUUID\|\|subschemaSubentry\|\|etag\|\|governingStructureRule\|\|structuralObjectClass\|\|hasSubordinates\|\|numSubordinates\"\)\(version\ 3.0\;\ acl\ \"User-Visible\ Operational\ Attributes\"\;\ allow\(read,search,compare\)\ userdn=\"ldap:///all\"\;\) \
32-
--hostname opendj.example.com \
33-
--port 4444 \
34-
--trustStorePath /path/to/opendj/config/admin-truststore \
35-
--bindDN cn=Directory\ Manager \
36-
--bindPassword ****** \
37-
--no-prompt
36+
--remove=global-aci:'(targetattr!="userPassword||authPassword||changes||
37+
changeNumber||changeType||changeTime||targetDN||newRDN||
38+
newSuperior||deleteOldRDN||targetEntryUUID||changeInitiatorsName||
39+
changeLogCookie||includedAttributes")(version 3.0; acl "Anonymous
40+
read access"; allow (read,search,compare) userdn="ldap:///anyone";)' \
41+
--hostname=opendj.example.com \
42+
--port=4444 \
43+
--bindDN=cn=Directory\ Manager \
44+
--bindPassword=password \
45+
--trustAll \
46+
--no-prompt
3847

0 commit comments

Comments
 (0)