File tree Expand file tree Collapse file tree
opendj-packages/opendj-docker/bootstrap Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ echo "Setting up default OpenDJ instance"
99 --baseDN $BASE_DN -h localhost --rootUserPassword " $ROOT_PASSWORD " \
1010 --acceptLicense --no-prompt $ADD_BASE_ENTRY # --sampleData 1
1111
12-
1312if [ -d /opt/opendj/bootstrap/schema/ ]; then
1413 echo " Loading initial schema:"
1514 for file in /opt/opendj/bootstrap/schema/* ; do
@@ -19,7 +18,16 @@ if [ -d /opt/opendj/bootstrap/schema/ ]; then
1918fi
2019
2120if [ -d /opt/opendj/bootstrap/data/ ]; then
22- echo " Loading initial data:"
21+ # allow pre encoded passwords
22+ /opt/opendj/bin/dsconfig \
23+ set-password-policy-prop \
24+ --bindDN " cn=Directory Manager" \
25+ --bindPassword " $ROOT_PASSWORD " \
26+ --policy-name " Default Password Policy" \
27+ --set allow-pre-encoded-passwords:true \
28+ --trustAll \
29+ --no-prompt
30+
2331 for file in /opt/opendj/bootstrap/data/* ; do
2432 echo " Loading $file ..."
2533 /opt/opendj/bin/ldapmodify -D " $ROOT_USER_DN " -h localhost -p $PORT -w $ROOT_PASSWORD -f $file
You can’t perform that action at this time.
0 commit comments