Skip to content

Commit

Permalink
Merge branch 'master' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
guimard committed Aug 29, 2024
2 parents 7c4cb2b + e7e8a84 commit 3e892e9
Show file tree
Hide file tree
Showing 22 changed files with 1,879 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ env:
VERSION: 2.19.1
PGVERSION: 15
DEBIANRELEASE: bookworm
DOCKERREVISION: 4
DOCKERREVISION: 5

on:
push:
Expand Down
8 changes: 7 additions & 1 deletion Changes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Changes

* 2024-08-19:
* 2024-08-29:
* Add security patch
* Add `_ldapsearch` command
* 2024-08-22:
* Add Mauritian Creole translation
* Add `LANGUAGES` variable
* 2024-08-19 (v2.19.1-4):
* add `libconvert-pem-perl` package into portal
* add `FORWARDED_BY`
* 2024-08-18:
Expand Down
1 change: 1 addition & 0 deletions base-no-s6/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ LemonLDAP::NG.
* `LOGGER` = `syslog` _(possible values: stderr, syslog)_
* `USERLOGGER` = `syslog` _(possible values: stderr, syslog)_
* `FORCE_KEY_REGENERATION` = `no`
* `LANGUAGES` = default LLNG list _(set here the wanted languages separated by comma. Example: `fr,en`)_
* Configuration and persistent session storage
* `PG_SERVER` =
* `PG_DATABASE` = `lemonldapng`
Expand Down
7 changes: 6 additions & 1 deletion base-no-s6/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ services:
environment:
- POSTGRES_PASSWORD=zz
healthcheck:
test: "exit 0"
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5

base:
image: yadd/lemonldap-ng-base-no-s6
build:
Expand All @@ -20,6 +24,7 @@ services:
- OVERRIDE_authChoiceModules={"1_LDAP":"Demo;Demo;Null;;;{}","2_SAML":"SAML;SAML;Null;;;{}"}
- OVERRIDE_applicationList_1sample_catname="Some applications"
- OVERRIDE_exportedVars_aa=bb
- LANGUAGES=en,fr
volumes:
- ./test-over:/over
depends_on:
Expand Down
4 changes: 4 additions & 0 deletions base-no-s6/install/etc/cont-init.d/update-llng-conf
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,7 @@ for key in `(env | grep OVERRIDE || true) | sed -e 's/=.*$//'`; do
echo "Set $KEYNAME to $VAL"
/usr/share/docker-llng/updateConf set `echo $KEYNAME|perl -pe 's/_/\n/g'` "$VAL"
done

if test "$LANGUAGES" != ''; then
perl -i -pe "s/^(languages\s*=\s*).*\$/\$1$LANGUAGES/" /etc/lemonldap-ng/lemonldap-ng.ini
fi
1 change: 1 addition & 0 deletions base-no-s6/test
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ $COMPOSE run base /usr/share/docker-llng/updateConf get applicationList 1sample
$COMPOSE run base /usr/share/docker-llng/updateConf get exportedVars aa | grep bb
$COMPOSE run base /usr/share/docker-llng/updateConf get macros | grep ZZ
$COMPOSE run base /usr/share/docker-llng/updateConf get portal | grep dockertest.com
$COMPOSE run base grep languages /etc/lemonldap-ng/lemonldap-ng.ini | perl -pe 's/\r//g' | grep -E '^languages *= *en,fr$'
$COMPOSE down
1 change: 1 addition & 0 deletions base/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ LemonLDAP::NG.
* `LOGGER` = `syslog` _(possible values: stderr, syslog)_
* `USERLOGGER` = `syslog` _(possible values: stderr, syslog)_
* `FORCE_KEY_REGENERATION` = `no`
* `LANGUAGES` = default LLNG list _(set here the wanted languages separated by comma. Example: `fr,en`)_
* Configuration and persistent session storage
* `PG_SERVER` =
* `PG_DATABASE` = `lemonldapng`
Expand Down
1 change: 1 addition & 0 deletions base/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ services:
- OVERRIDE_authChoiceModules={"1_LDAP":"Demo;Demo;Null;;;{}","2_SAML":"SAML;SAML;Null;;;{}"}
- OVERRIDE_applicationList_1sample_catname="Some applications"
- OVERRIDE_exportedVars_aa=bb
- LANGUAGES=en,fr
volumes:
- ./test-over:/over
depends_on:
Expand Down
4 changes: 4 additions & 0 deletions base/install/etc/cont-init.d/update-llng-conf
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,7 @@ for key in `(env | grep OVERRIDE || true) | sed -e 's/=.*$//'`; do
echo "Set $KEYNAME to $VAL"
/usr/share/docker-llng/updateConf set `echo $KEYNAME|perl -pe 's/_/\n/g'` "$VAL"
done

if test "$LANGUAGES" != ''; then
perl -i -pe "s/^(languages\s*=\s*).*\$/\$1$LANGUAGES/" /etc/lemonldap-ng/lemonldap-ng.ini
fi
1 change: 1 addition & 0 deletions base/test
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ $COMPOSE run base /usr/share/docker-llng/updateConf get applicationList 1sample
$COMPOSE run base /usr/share/docker-llng/updateConf get exportedVars aa | grep bb
$COMPOSE run base /usr/share/docker-llng/updateConf get macros | grep ZZ
$COMPOSE run base /usr/share/docker-llng/updateConf get portal | grep dockertest.com
$COMPOSE run base grep languages /etc/lemonldap-ng/lemonldap-ng.ini | perl -pe 's/\r//g' | grep -E '^languages *= *en,fr$'
$COMPOSE down
2 changes: 1 addition & 1 deletion portal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ COPY *.patch /
RUN for p in appgrid.patch jwt-type.patch app-scope.patch ignorepollers.patch \
fixedLogout.patch more-logs.patch introspec-for-public-clients.patch \
token-exchange.patch redirect-ajax.patch back-channel-debug.patch \
crowdsec.patch recaptcha.patch msg-broker.patch \
crowdsec.patch recaptcha.patch msg-broker.patch mfe.patch security.patch \
; do echo patch $p && patch -p1 < $p; done && \
rm -f /*.patch && \
echo "# Install nginx configuration files" && \
Expand Down
Loading

0 comments on commit 3e892e9

Please sign in to comment.