Commit b50bd72 David Coutadeur
committed
1 parent abd0da0 commit b50bd72 Copy full SHA for b50bd72
File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ dn: cn=config
2
2
objectClass: olcGlobal
3
3
cn: config
4
4
olcConfigFile: /usr/local/openldap/etc/openldap/slapd.conf
5
- olcConfigDir: /tmp/ slapd.d-tmp
5
+ olcConfigDir: /usr/local/openldap/etc/openldap/ slapd.d
6
6
olcArgsFile: /usr/local/openldap/var/run/slapd.args
7
7
olcAttributeOptions: lang-
8
8
olcAuthzPolicy: none
@@ -324,7 +324,8 @@ olcLastMod: TRUE
324
324
olcLastBind: TRUE
325
325
olcMaxDerefDepth: 15
326
326
olcReadOnly: FALSE
327
- olcRootDN: cn=monitor
327
+ olcRootDN: CONFIG_MONITORROOTDN
328
+ olcRootPW: CONFIG_MONITORROOTPW
328
329
olcSyncUseSubentry: FALSE
329
330
olcMonitoring: FALSE
330
331
Original file line number Diff line number Diff line change @@ -1637,6 +1637,9 @@ build_config_template() {
1637
1637
if [ ! -z ${CONFIG_CONFIGROOTDN+x} ] && [ " ${CONFIG_CONFIGROOTDN} " != " " ]; then
1638
1638
sed -i -e " s/^olcRootDN: ${CONFIG_CONFIGROOTDN} $/olcRootDN: CONFIG_CONFIGROOTDN\nolcRootPW: CONFIG_CONFIGROOTPW/" " $2 "
1639
1639
fi
1640
+ if [ ! -z ${CONFIG_MONITORROOTDN+x} ] && [ " ${CONFIG_MONITORROOTDN} " != " " ]; then
1641
+ sed -i -e " s/^olcRootDN: ${CONFIG_MONITORROOTDN} $/olcRootDN: CONFIG_MONITORROOTDN\nolcRootPW: CONFIG_MONITORROOTPW/" " $2 "
1642
+ fi
1640
1643
1641
1644
# replace olcDbDirectory by the given placeholder
1642
1645
if [ ! -z ${CONFIG_DATADIR+x} ] && [ " ${CONFIG_DATADIR} " != " " ]; then
You can’t perform that action at this time.
0 commit comments