3 p=/usr/share/gforge/plugins/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=/etc/fusionforge/config.ini.d/sysauthldap-secrets.ini
12 if ! [ -e "$c" ] ; then
15 echo [sysauthldap] >> $c
16 echo ldap_password = CHANGEME >> $c
19 f=/etc/gforge/httpd.conf.d/plugin-sysauthldap-secrets.inc
21 cp /usr/share/gforge/etc/httpd.conf.d-fhs/plugin-sysauthldap-secrets.inc $f
23 PATH=/usr/share/gforge/bin:$PATH manage-apache-config.sh install