Skip to content
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.

Commit

Permalink
Bug Fix: LDAP Proxy Install
Browse files Browse the repository at this point in the history
Addressed Issue #113
  • Loading branch information
duncan-mccracken committed Oct 17, 2018
1 parent e81f2d9 commit cb41cac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LDAPProxy/LDAPProxyInstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ if [ ! -d "/var/appliance/conf" ]; then
fi

# Configure slapd
if [ -d "/etc/ldap" ]; then
if [ -d "/etc/ldap" ] && [ "$(getent passwd openldap)" != "" ]; then
rm -rf /etc/ldap/slapd.d/ >> $logFile
cp ./resources/slapd.conf /etc/ldap/slapd.conf >> $logFile
cp ./resources/slapd.conf /var/appliance/conf/slapd.conf >> $logFile
Expand All @@ -76,7 +76,7 @@ if [ -d "/etc/ldap" ]; then
cp /etc/ssl/private/ssl-cert-snakeoil.key /var/appliance/conf/appliance.private.key
chown openldap /var/appliance/conf/appliance.private.key
fi
if [ -d "/etc/openldap" ]; then
if [ -d "/etc/openldap" ] && [ "$(getent passwd ldap)" != "" ]; then
rm -rf /etc/openldap/slapd.d/ >> $logFile
cp ./resources/slapdyum.conf /etc/openldap/slapd.conf >> $logFile
cp ./resources/slapdyum.conf /var/appliance/conf/slapd.conf >> $logFile
Expand Down

0 comments on commit cb41cac

Please sign in to comment.