dolibarr-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dolibarr-cvs] dolibarr/htdocs/admin ldap.php


From: Regis Houssin
Subject: [Dolibarr-cvs] dolibarr/htdocs/admin ldap.php
Date: Mon, 12 Jun 2006 15:09:29 +0000

CVSROOT:        /cvsroot/dolibarr
Module name:    dolibarr
Changes by:     Regis Houssin <hregis>  06/06/12 15:09:29

Modified files:
        htdocs/admin   : ldap.php 

Log message:
        début amélioration LDAP

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/dolibarr/htdocs/admin/ldap.php?cvsroot=dolibarr&r1=1.48&r2=1.49

Patches:
Index: ldap.php
===================================================================
RCS file: /cvsroot/dolibarr/dolibarr/htdocs/admin/ldap.php,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -b -r1.48 -r1.49
--- ldap.php    12 Jun 2006 14:58:06 -0000      1.48
+++ ldap.php    12 Jun 2006 15:09:29 -0000      1.49
@@ -19,7 +19,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  *
- * $Id: ldap.php,v 1.48 2006/06/12 14:58:06 hregis Exp $
+ * $Id: ldap.php,v 1.49 2006/06/12 15:09:29 hregis Exp $
  * $Source: /cvsroot/dolibarr/dolibarr/htdocs/admin/ldap.php,v $
  */
  
@@ -27,7 +27,7 @@
        \file       htdocs/admin/ldap.php
                \ingroup    ldap
                \brief      Page d'administration/configuration du module Ldap
-               \version    $Revision: 1.48 $
+               \version    $Revision: 1.49 $
         \remarks    Exemple configuration :
                     LDAP_SERVER_HOST    Serveur LDAP                 
192.168.1.50
                     LDAP_SERVER_PORT    Port LDAP             389
@@ -261,11 +261,11 @@
        
        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 @@
                        print img_picto('','alerte');
                        print $langs->trans("LDAPTestKO").'<br>';
                        print "<br>";
-                       print $ds->err;
+                       print $ldap->err;
                        print "<br>";
                }
 
@@ -306,7 +306,7 @@
                        {
                                print img_picto('','alerte');
                                print "Connexion au dn $dn raté : ";
-                               print $bind->err;
+                               print $ldap->err;
                                print "<br>";
                        }
 
@@ -330,6 +330,6 @@
 
 $db->close();
 
-llxFooter('$Date: 2006/06/12 14:58:06 $ - $Revision: 1.48 $');
+llxFooter('$Date: 2006/06/12 15:09:29 $ - $Revision: 1.49 $');
 
 ?>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]