You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2019-02-12 17:06:11

Atchen
Member
Registered: 2018-10-01
Posts: 8

Compte LDAP désactivé

Bonjour,

Depuis que nous sommes passés à la version 9.3.1 de GLPI, le compte d'un utilisateur se désactive lorsqu'il entre un mot de passe erroné, cela ne concerne que les comptes LDAP.
Est-ce que cela viendrait d'un paramètre dans GLPI ?

Merci

Offline

#2 2019-02-14 12:36:35

dmb77
Member
Registered: 2011-02-11
Posts: 298

Re: Compte LDAP désactivé

Bonjour j'ai exactement la même problématique mais je suis sur 9.3.3

voici un exemple des logs coté utilisateur.

mini_19021411381535560.jpg

un admin doit réactiver le compte.

version glpi: 9.3.3
php ldap: 1:7.0+49
PHP 7.0.33-0+deb9u1

Offline

#3 2019-02-14 15:40:45

dmb77
Member
Registered: 2011-02-11
Posts: 298

Re: Compte LDAP désactivé

J'ajoute les erreurs dans le fichier de log php

[2019-02-14 14:38:16] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in /var/www/glpi/inc/toolbox.class.php line 657
  *** PHP Warning(2): ldap_bind(): Unable to bind to server: Invalid credentials
  Backtrace :
  :
  inc/auth.class.php:234                             ldap_bind()
  inc/authldap.class.php:2676                        Auth->connection_ldap()
  inc/authldap.class.php:2731                        AuthLDAP::ldapAuth()
  inc/auth.class.php:740                             AuthLDAP::tryLdapAuth()
  front/login.php:84                                 Auth->login()
  {"user":"@ITGLPI01"}
[2019-02-14 14:38:17] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in /var/www/glpi/inc/toolbox.class.php line 657
  *** PHP Warning(2): ldap_start_tls(): Unable to start TLS: Can't contact LDAP server
  Backtrace :
  :
  inc/authldap.class.php:2522                        ldap_start_tls()
  inc/authldap.class.php:2557                        AuthLDAP::connectToServer()
  inc/auth.class.php:211                             AuthLDAP::tryToConnectToServer()
  inc/authldap.class.php:2676                        Auth->connection_ldap()
  inc/authldap.class.php:2731                        AuthLDAP::ldapAuth()
  inc/auth.class.php:740                             AuthLDAP::tryLdapAuth()
  front/login.php:84                                 Auth->login()
  {"user":"@ITGLPI01","mem_usage":"1.019\", 2.27Mio)"}
[2019-02-14 14:38:17] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in /var/www/glpi/inc/toolbox.class.php line 657
  *** PHP Warning(2): ldap_start_tls(): Unable to start TLS: Can't contact LDAP server
  Backtrace :
  :
  inc/authldap.class.php:2522                        ldap_start_tls()
  inc/authldap.class.php:2564                        AuthLDAP::connectToServer()
  inc/auth.class.php:211                             AuthLDAP::tryToConnectToServer()
  inc/authldap.class.php:2676                        Auth->connection_ldap()
  inc/authldap.class.php:2731                        AuthLDAP::ldapAuth()
  inc/auth.class.php:740                             AuthLDAP::tryLdapAuth()
  front/login.php:84                                 Auth->login()
  {"user":"@ITGLPI01","mem_usage":"0.087\", 2.27Mio)"}
[2019-02-14 14:38:17] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in /var/www/glpi/inc/toolbox.class.php line 657
  *** PHP Warning(2): ldap_bind(): Unable to bind to server: Invalid credentials
  Backtrace :
  :
  inc/authldap.class.php:2528                        ldap_bind()
  inc/authldap.class.php:2557                        AuthLDAP::connectToServer()
  inc/auth.class.php:211                             AuthLDAP::tryToConnectToServer()
  inc/authldap.class.php:2676                        Auth->connection_ldap()
  inc/authldap.class.php:2731                        AuthLDAP::ldapAuth()
  inc/auth.class.php:740                             AuthLDAP::tryLdapAuth()
  front/login.php:84                                 Auth->login()
  {"user":"@ITGLPI01","mem_usage":"0.346\", 2.27Mio)"}
[2019-02-14 14:38:18] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in /var/www/glpi/inc/toolbox.class.php line 657
  *** PHP Warning(2): ldap_bind(): Unable to bind to server: Invalid credentials
  Backtrace :
  :
  inc/authldap.class.php:2528                        ldap_bind()
  inc/authldap.class.php:2564                        AuthLDAP::connectToServer()
  inc/auth.class.php:211                             AuthLDAP::tryToConnectToServer()
  inc/authldap.class.php:2676                        Auth->connection_ldap()
  inc/authldap.class.php:2731                        AuthLDAP::ldapAuth()
  inc/auth.class.php:740                             AuthLDAP::tryLdapAuth()
  front/login.php:84                                 Auth->login()
  {"user":"@ITGLPI01","mem_usage":"0.228\", 2.27Mio)"}

Actuellement j'ai 24 annuaire LDAP de configuer dont 5 en statut INACTIF.

Offline

#4 2019-02-14 15:42:33

dmb77
Member
Registered: 2011-02-11
Posts: 298

Re: Compte LDAP désactivé

et l'option Afficher la liste des sources d'authentification sur la page de login ==> non

Offline

#5 2019-02-15 10:21:00

dmb77
Member
Registered: 2011-02-11
Posts: 298

Re: Compte LDAP désactivé

Bonjour, nous avons pu trouver le souci dans authentification, configuration: Action lorsqu'un utilisateur est supprimé de l'annuaire LDAP ==> conserver

Offline

#6 2019-02-18 11:12:28

Atchen
Member
Registered: 2018-10-01
Posts: 8

Re: Compte LDAP désactivé

Bonjour,

Effectivement, cela fonctionne. Merci pour cette solution.

En modifiant cela, il faudra donc penser à désactiver manuellement le compte utilisateur de la personne si nous supprimons son compte LDAP.

Offline

Board footer

Powered by FluxBB