From 01e32157d5717200212919c21bf515b94c9600e2 Mon Sep 17 00:00:00 2001
From: "Committo,Ergo:sum" <esj@rezo.net>
Date: Mon, 17 Dec 2007 14:34:36 +0000
Subject: [PATCH] =?UTF-8?q?[6849]=C2=A0avait=20fait=20sauter=20la=20recher?=
 =?UTF-8?q?che=20automatique=20du=20DN=20(Brosse).?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ecrire/inc/auth_ldap.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ecrire/inc/auth_ldap.php b/ecrire/inc/auth_ldap.php
index fa045544c1..4335d5d445 100644
--- a/ecrire/inc/auth_ldap.php
+++ b/ecrire/inc/auth_ldap.php
@@ -65,6 +65,7 @@ function auth_ldap_search($login, $pass)
 		// Si echec, essayer de deviner le DN
 		reset($atts);
 		while (list(, $att) = each($atts)) {
+			$dn = "$att=$login_search, $ldap_base";
 			if (@ldap_bind($ldap_link, $dn, $pass))
 				return "$att=$login_search, $ldap_base";
 		}
-- 
GitLab