From d453f4d8e2877567f0722dbee8a9f43865638570 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 12 Jun 2006 15:09:29 +0000 Subject: [PATCH] =?UTF-8?q?d=E9but=20am=E9lioration=20LDAP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/admin/ldap.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/admin/ldap.php b/htdocs/admin/ldap.php index 2b5b58d7285..35c36f87339 100644 --- a/htdocs/admin/ldap.php +++ b/htdocs/admin/ldap.php @@ -261,11 +261,11 @@ if (function_exists("ldap_connect")) if ($conf->global->LDAP_SERVER_HOST && $conf->global->LDAP_ADMIN_DN && $conf->global->LDAP_ADMIN_PASS && $_GET["action"] == 'test') { - $ldap = new Ldap(); + $ldap = New Ldap(); // Test ldap_connect // ce test n'est pas fiable car une ressource est constamment retournée // il faut se fier au test ldap_bind - $ds = $ldap->dolibarr_ldap_connect(); + $ds = $ldap->dolibarr_ldap_connect() if ($ds) { print img_picto('','info'); @@ -276,7 +276,7 @@ if (function_exists("ldap_connect")) print img_picto('','alerte'); print $langs->trans("LDAPTestKO").'
'; print "
"; - print $ds->err; + print $ldap->err; print "
"; } @@ -306,7 +306,7 @@ if (function_exists("ldap_connect")) { print img_picto('','alerte'); print "Connexion au dn $dn raté : "; - print $bind->err; + print $ldap->err; print "
"; }