From 8f1d6cb579ec203ce86f8af30bea729dbb0a9f7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sat, 13 Jun 2020 02:07:52 +0200 Subject: Fix Adminer mysql connection for PAM authentication --- .../websites/immae/history/_posts/2020-06-13-fix-adminer.md | 10 ++++++++++ modules/private/websites/tools/tools/adminer.nix | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 modules/private/websites/immae/history/_posts/2020-06-13-fix-adminer.md (limited to 'modules') diff --git a/modules/private/websites/immae/history/_posts/2020-06-13-fix-adminer.md b/modules/private/websites/immae/history/_posts/2020-06-13-fix-adminer.md new file mode 100644 index 0000000..af6edf1 --- /dev/null +++ b/modules/private/websites/immae/history/_posts/2020-06-13-fix-adminer.md @@ -0,0 +1,10 @@ +--- +title: "Réparation d’Adminer" +category: Fix +tags: [BDD] +date: 2020-06-13 +--- +Depuis la mise à jour de NixOS à 19.09, Adminer (et plus généralement +php) n’était plus capable de se connecter à mysql avec le mécanisme PAM. +L’extension mysqli a été patchée pour permettre une telle utilisation, +permettant d’utiliser à nouveau Adminer comme client. diff --git a/modules/private/websites/tools/tools/adminer.nix b/modules/private/websites/tools/tools/adminer.nix index 61fd37c..af03550 100644 --- a/modules/private/websites/tools/tools/adminer.nix +++ b/modules/private/websites/tools/tools/adminer.nix @@ -1,4 +1,4 @@ -{ adminer, php74, forcePhpSocket ? null }: +{ adminer, php74, php74base, myPhpPackages, lib, forcePhpSocket ? null }: rec { activationScript = { deps = [ "httpd" ]; @@ -10,7 +10,7 @@ rec { phpFpm = rec { user = apache.user; group = apache.group; - phpPackage = php74; + phpPackage = php74base.withExtensions (e: (lib.remove e.mysqli php74.enabledExtensions) ++ [myPhpPackages.mysqli_pam]); settings = { "listen.owner" = apache.user; "listen.group" = apache.group; -- cgit v1.2.3