Bug #64247
ldap : schema ppolicy.ldif absent des versions récentes de la config openldap (?)
0%
Description
Dans les tests, la fixture slapd_ppolicy
tente de charger le fichier inexistant /etc/ldap/schema/ppolicy.ldif
.
En tentant de récupérer ce schéma depuis une config ldap plus ancienne, on se rend compte que ça plante car le schéma est déjà chargé dans l’annuaire initialisé.
Sans doute un redécoupage des schémas dans les versions récentes d’openldap, et ce ppolicy qui se retrouve chargé par défaut.
Fichiers
Révisions associées
tests: fix test pwdGraceAuthnLimit test value according to testcase (#64247)
Historique
Mis à jour par Paul Marillonnet il y a environ 2 ans
En ne le chargeant pas du tout dans la fixture slapd_ppolicy lorsque le fichier n’existe pas dans /etc/ldap/schema, notamment lorsqu’on tourne les tests avec un debian comportant openldap>=2.5, on se retrouve quand même avec des tests qui plantent genre test_authenticate_ppolicy_pwdGraceAuthnLimit
.
Je serais d’avis de taper sur ces tests un skipif(OPENLDAP_VERSION >= (2, 5))
et basta.
Mis à jour par Paul Marillonnet il y a environ 2 ans
- Fichier 0001-tests-do-not-fail-on-absent-schema-in-newer-openldap.patch 0001-tests-do-not-fail-on-absent-schema-in-newer-openldap.patch ajouté
- Fichier 0002-tests-fix-test-pwdGraceAuthnLimit-test-value-accordi.patch 0002-tests-fix-test-pwdGraceAuthnLimit-test-value-accordi.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
En fait une valeur de config de test fausse (0002), je ne sais pas comment ça a pu marcher jusque là.
Mis à jour par Paul Marillonnet il y a environ 2 ans
- Fichier 0001-tests-do-not-fail-on-absent-schema-in-newer-openldap.patch 0001-tests-do-not-fail-on-absent-schema-in-newer-openldap.patch ajouté
- Fichier 0002-tests-fix-test-pwdGraceAuthnLimit-test-value-accordi.patch 0002-tests-fix-test-pwdGraceAuthnLimit-test-value-accordi.patch ajouté
Paul Marillonnet a écrit :
En fait une valeur de config de test fausse (0002), je ne sais pas comment ça a pu marcher jusque là.
Pour être précis elle devient fausse en openldap>=2.5, c’est n’importe quoi.
Mis à jour par Paul Marillonnet il y a environ 2 ans
- Fichier 0001-tests-do-not-fail-on-absent-schema-in-newer-openldap.patch 0001-tests-do-not-fail-on-absent-schema-in-newer-openldap.patch ajouté
- Fichier 0002-tests-fix-test-pwdGraceAuthnLimit-test-value-accordi.patch 0002-tests-fix-test-pwdGraceAuthnLimit-test-value-accordi.patch ajouté
Exaspération.
Mis à jour par Benjamin Dauvergne il y a environ 2 ans
- Statut changé de Solution proposée à Solution validée
Ok.
Mis à jour par Benjamin Dauvergne il y a presque 2 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit 0aecc5c620ec87545d2adc2fb54f061ef8672653 Author: Paul Marillonnet <pmarillonnet@entrouvert.com> Date: Fri Apr 15 11:00:37 2022 +0200 tests: fix test pwdGraceAuthnLimit test value according to testcase (#64247) commit 84d2c76a70eaf58dd7227c71d4480086a02b1cc4 Author: Paul Marillonnet <pmarillonnet@entrouvert.com> Date: Fri Apr 15 10:34:39 2022 +0200 tests: do not fail on absent schema in newer openldap versions (#64247)
Mis à jour par Transition automatique il y a presque 2 ans
- Statut changé de Résolu (à déployer) à Solution déployée
tests: do not fail on absent schema in newer openldap versions (#64247)