Project

General

Profile

Tâche #34915

Scénario #34741: Problèmes rencontrés lors de la qualification 2.9.0-rc1

Correction ZE-T09-001 - Utiliser Zéphir avec un annuaire distant (2.9.0-RC1)

Added by Laurent Flori 5 months ago. Updated 4 months ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
05/03/2021
Due date:
% Done:

100%

Estimated time:
0.00 h
Remaining (hours):
0.0

Description

Pas №6

Impossible de passer l'authentification. Avec un mot de passe valide on obtient la sortie:
```
ldapsearch: unrecognized option -
```

Exécution Squash-TM

Associated revisions

Revision fb784f1b (diff)
Added by Joël Cuissinat 4 months ago

posttemplate/10-conf-zephir : mise à jour des requêtes ldap "annuaire distant"

Ref: #34915
Ref: #33127

History

#1 Updated by Laurent Flori 5 months ago

  • Copied from Tâche #34742: Correction <ID_DU_TEST> - <nom test> - <NOM DU JEU DE DONNÉES> (2.9.0-RC1) added

#2 Updated by Joël Cuissinat 5 months ago

  • Copied from deleted (Tâche #34742: Correction <ID_DU_TEST> - <nom test> - <NOM DU JEU DE DONNÉES> (2.9.0-RC1))

#3 Updated by Joël Cuissinat 4 months ago

conf-zephir$ rgrep -- -h posttemplate/10-conf-zephir 
    # changement avec la 2.9 -h devient -H et $adresse_ip_ldap doit être précédé de ldap://
                DN=$(ldapsearch -LLL -x -h $adresse_ip_ldap -b "$ldap_base_dn" "uid=$admin_zephir" dn | perl -00lne '($dn = $_) =~ s/(?:^dn:\s+)|(?:\r?\n\s)//g; print $dn') &>/dev/null
                ldapsearch -x -h $adresse_ip_ldap -b "$ldap_base_dn" -D "${DN}" -w "${pass_zeph}" "uid=$admin_zephir" &> /dev/null

#4 Updated by Joël Cuissinat 4 months ago

  • Status changed from Nouveau to Résolu
  • Assigned To set to Joël Cuissinat
  • % Done changed from 0 to 100

Je précise que le code ne gère pas les variables ldap_tls et ldap_port :O
J'ai profité de cette correction pour implémenter (partiellement?) la gestion d'un port différent de celui par défaut (389).

#5 Updated by Joël Cuissinat 4 months ago

→ conf-zephir 2.9.0-12

#6 Updated by Joël Cuissinat 4 months ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF