File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 7171 # preseeding files so we need to manualy bootstrap cn=config (but not the
7272 # databases).
7373 exec { 'bootstrap cn=config' :
74- command => " /bin/sed -e 's/@BACKEND@/mdb/g' -e '/^# The database definition.$/q' /usr/share/slapd/slapd.init.ldif | /usr/sbin/slapadd -F ${openldap::server::confdir} -b cn=config" ,
74+ command => " /bin/sed -e 's/@BACKEND@/mdb/g' -e '/^# The database definition.$/q' /usr/share/slapd/slapd.init.ldif | /usr/sbin/slapadd -F ${openldap::server::confdir.stdlib::shell_escape } -b cn=config" ,
7575 provider => ' shell' ,
7676 creates => " ${openldap::server::confdir} /cn=config.ldif" ,
7777 user => $openldap::server::owner ,
162162 $ldif = file (' openldap/cn-config.ldif' )
163163 exec { 'bootstrap cn=config' :
164164 path => ' /usr/local/sbin' ,
165- command => " echo ' ${ldif} ' | slapadd -n 0 -F ${openldap::server::confdir} " ,
165+ command => " echo ${ldif.stdlib::shell_escape} | slapadd -n 0 -F ${openldap::server::confdir.stdlib::shell_escape }" ,
166166 creates => " ${openldap::server::confdir} /cn=config.ldif" ,
167167 provider => ' shell' ,
168168 user => $openldap::server::owner ,
Original file line number Diff line number Diff line change 1111 # installation will succed. The module will then be able to tune slapd
1212 # accoding to the user needs and finally start (and unmak) the service.
1313 exec { 'mask-before-openldap-install' :
14- command => " systemctl mask ${openldap::server::service} " ,
14+ command => " systemctl mask ${openldap::server::service.stdlib::shell_escape }" ,
1515 unless => ' test -x /usr/sbin/slapd' ,
1616 creates => " /etc/systemd/system/${openldap::server::service} .service" ,
1717 path => ' /bin:/usr/bin' ,
You can’t perform that action at this time.
0 commit comments