Skip to content
Snippets Groups Projects
Commit 7da2b3f3 authored by Edward Hicks's avatar Edward Hicks :8ball:
Browse files

fix ldap integration for debian 12+ based images

parent abb57146
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get -yq update
RUN apt-get -yq install apt-utils
RUN apt-get -yq upgrade
RUN apt-get -yq install less nano git procps lsof postfix mailutils ldap-utils libnss-ldap libpam-ldap
RUN apt-get -yq install less nano git procps lsof postfix mailutils ldap-utils libnss-ldapd libpam-ldap
RUN apt-get -yq install libgd-dev libpng-dev libwebp-dev libjpeg-dev libxpm-dev libfreetype-dev libz-dev
RUN apt-get -yq install libc-client-dev libkrb5-dev libldap-dev libsasl2-dev unixodbc-dev libbz2-dev
RUN apt-get -yq install libgmp-dev libicu-dev libpq-dev libpspell-dev libxml2-dev libtidy-dev libxslt-dev
......@@ -80,6 +80,9 @@ COPY usr/ /usr/
RUN mkdir -pv /var/www/sharedtmp /var/www/privatedata
RUN chmod -c 2775 /var/www/privatedata
RUN chmod -c 1777 /var/www/sharedtmp
RUN chown -c root:nslcd /etc/nslcd.conf
RUN chmod -c 640 /etc/nslcd.conf
RUN chmod u+s /usr/sbin/nslcd
# Enable LDAP accounts
RUN sed -E -i 's/^passwd:(.*)$/passwd:\1 ldap/' /etc/nsswitch.conf
......
ldap_version 3
uid nslcd
gid nslcd
uri ldaps://webhosting-ldap-nlb-ff10c809b1beba67.elb.us-east-2.amazonaws.com
tls_checkpeer no
base ou=nextweb,dc=osu,dc=edu
scope sub
ldap_version 3
binddn cn=wwwro2,ou=admins,dc=osu,dc=edu
bindpw Smk6Ucsq74F0H3iZnKZeSNE4aTzV8VEzaeBBARUtOyGmMRBQbU
tls_reqcert never
scope sub
#!/bin/sh
# Overwrite default instance of php.ini with a custom one if one is found.
# This is preferred to mapping in directly as the file
if [ -r /usr/local/etc/php/php.ini-custom ]; then
if [ -w /usr/local/etc/php/ ]; then
echo "Replacing default php.ini with provided custom"
rm -vf /usr/local/etc/php/php.ini
cp -v /usr/local/etc/php/php.ini-custom /usr/local/etc/php/php.ini
chmod -v 440 /usr/local/etc/php/php.ini
else
echo "Unable to replace default php.ini!"
fi
else
echo "Using existing php.ini"
fi
# Launch the actual entrypoint script for this container
ulimit -c 0
if ! /usr/sbin/nslcd -c; then /usr/sbin/nslcd; fi
. /usr/local/bin/docker-php-entrypoint
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment