Skip to content

Instantly share code, notes, and snippets.

@westberliner
Last active January 28, 2023 13:41
Show Gist options
  • Save westberliner/d8e622d052e01c9368b9 to your computer and use it in GitHub Desktop.
Save westberliner/d8e622d052e01c9368b9 to your computer and use it in GitHub Desktop.
Add ldap php extension to official owncloud docker container.
FROM owncloud:latest
RUN \
apt-get update && \
apt-get install libldap2-dev -y && \
rm -rf /var/lib/apt/lists/* && \
docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ && \
docker-php-ext-install ldap
@evandrojlle
Copy link

I tried to use this solution but it didn't work, it returned an error on the console

@devXela
Copy link

devXela commented Jun 16, 2021

Tks

@hijpax
Copy link

hijpax commented Mar 24, 2022

Thank you. It works in php7.2-fpm-buster docker image.

@darakanoit
Copy link

Thx, nice job

@aleesb01
Copy link

What a genius, I had a lot of problems using extension ldap on php 7 in docker but you, finally, gave me the solution to this...

Thank you so much!!!

@yveson33
Copy link

thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment