-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathstartOpenDJ
More file actions
27 lines (22 loc) · 704 Bytes
/
startOpenDJ
File metadata and controls
27 lines (22 loc) · 704 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
#
# Start OpenDJ
#
# TODO
# expand to allow "status", "http"
# default to "start"
HOSTNAME=opendj.example.com
BINDDN="cn=Directory Manager"
PORT=4444
BINDPASSWORD=password
/opt/opendj/bin/dsconfig set-connection-handler-prop \
--hostname ${HOSTNAME} --port ${PORT} \
--bindDN "${BINDDN}" --bindPassword ${BINDPASSWORD} \
--handler-name "HTTP Connection Handler" \
--set enabled:true --no-prompt --trustAll \
/opt/opendj/bin/dsconfig set-log-publisher-prop \
--hostname ${HOSTNAME} --port ${PORT} \
--bindDN "${BINDDN}" --bindPassword ${BINDPASSWORD} \
--publisher-name "File-based HTTP Access Logger" \
--set enabled:true --no-prompt --trustAll
/opt/opendj/bin/start-ds -N