3 p=$(forge_get_config plugins_path)/sysauthldap
5 if [ -x /usr/sbin/slapd ] && [ -x /usr/bin/ldapadd ] ; then
6 if ! slapcat -b cn=schema,cn=config 2> /dev/null | egrep -q ^cn:.\{[[:digit:]]+\}gforge$ ; then
7 $p/bin/schema2ldif.pl < $p/gforge.schema | ldapadd -H ldapi:/// -Y EXTERNAL -Q
11 c=$(forge_get_config config_path)/config.ini.d/sysauthldap-secrets.ini
12 if ! [ -e "$c" ] ; then
15 echo [sysauthldap] >> $c
16 echo ldap_password = CHANGEME >> $c
19 f=$(forge_get_config config_path)/httpd.conf.d/plugin-sysauthldap-secrets.inc
21 cp $(forge_get_config source_path)/etc/httpd.conf.d-fhs/plugin-sysauthldap-secrets.inc $f
23 PATH=$(forge_get_config binary_path)/bin:$PATH manage-apache-config.sh install