Skip to content

Commit

Permalink
fixing LDAP Group Admin if not set
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Demidov authored and Alexey Demidov committed Mar 17, 2020
1 parent 4f19a77 commit 3933e44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ if [ ! -f /etc/openldap/slapd.d/.init ]; then
sed -i -e "/.*LDAP_READONLY_USER_USERNAME.*/d" /etc/openldap/slapd.conf
fi

if [ "${LDAP_GROUP_ADMIN,,}" == "" ]; then
if [ "${LDAP_GROUP_ADMIN,,}" == "false" ]; then
sed -i -e "/.*LDAP_GROUP_ADMIN.*/d" /etc/openldap/slapd.conf
else
sed -i -e "s|LDAP_GROUP_ADMIN|$LDAP_GROUP_ADMIN|g" /etc/openldap/slapd.conf
Expand Down

0 comments on commit 3933e44

Please sign in to comment.