Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Web Hosting EKS - PHP 8.4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OTDI Web Hosting
Container Images
Web Hosting EKS - PHP 8.4
Commits
7da2b3f3
Commit
7da2b3f3
authored
11 months ago
by
Edward Hicks
Browse files
Options
Downloads
Patches
Plain Diff
fix ldap integration for debian 12+ based images
parent
abb57146
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+4
-1
4 additions, 1 deletion
Dockerfile
etc/nslcd.conf
+5
-3
5 additions, 3 deletions
etc/nslcd.conf
usr/local/bin/docker-php-entrypoint-custom
+1
-17
1 addition, 17 deletions
usr/local/bin/docker-php-entrypoint-custom
with
10 additions
and
21 deletions
Dockerfile
+
4
−
1
View file @
7da2b3f3
...
...
@@ -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-ldap
d
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
...
...
This diff is collapsed.
Click to expand it.
etc/
libnss-ldap
.conf
→
etc/
nslcd
.conf
+
5
−
3
View file @
7da2b3f3
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
This diff is collapsed.
Click to expand it.
usr/local/bin/docker-php-entrypoint-custom
+
1
−
17
View file @
7da2b3f3
#!/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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment