dolibarr-cvs
[Top][All Lists]
Advanced

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

[Dolibarr-cvs] dolibarr/htdocs adminldap.php lib/ldap.lib.php


From: Regis Houssin
Subject: [Dolibarr-cvs] dolibarr/htdocs adminldap.php lib/ldap.lib.php
Date: Mon, 12 Jun 2006 12:55:04 +0000

CVSROOT:        /cvsroot/dolibarr
Module name:    dolibarr
Changes by:     Regis Houssin <hregis>  06/06/12 12:55:04

Modified files:
        htdocs/admin   : ldap.php 
        htdocs/lib     : ldap.lib.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.43&r2=1.44
http://cvs.savannah.gnu.org/viewcvs/dolibarr/htdocs/lib/ldap.lib.php?cvsroot=dolibarr&r1=1.28&r2=1.29

Patches:
Index: admin/ldap.php
===================================================================
RCS file: /cvsroot/dolibarr/dolibarr/htdocs/admin/ldap.php,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -b -r1.43 -r1.44
--- admin/ldap.php      12 Jun 2006 12:48:43 -0000      1.43
+++ admin/ldap.php      12 Jun 2006 12:55:04 -0000      1.44
@@ -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.43 2006/06/12 12:48:43 hregis Exp $
+ * $Id: ldap.php,v 1.44 2006/06/12 12:55:04 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.43 $
+               \version    $Revision: 1.44 $
         \remarks    Exemple configuration :
                     LDAP_SERVER_HOST    Serveur LDAP                 
192.168.1.50
                     LDAP_SERVER_PORT    Port LDAP             389
@@ -263,7 +263,6 @@
        {
                // Test ldap_connect
                $ds = dolibarr_ldap_connect();
-       print "x".$ds;
                if ($ds)
                {
                        print img_picto('','info');
@@ -279,6 +278,8 @@
                }
 
                // Test ldap_getversion
+               if ($ds)
+               {
                if ((dolibarr_ldap_getversion($ds) == 3))
                {
                        print img_picto('','info');
@@ -289,6 +290,7 @@
                        print img_picto('','info');
                        print $langs->trans("LDAPSetupForVersion2").'<br>';
                }
+               }
        
                // Test ldap_bind
                $bind = @dolibarr_ldap_bind($ds);
@@ -325,6 +327,6 @@
 
 $db->close();
 
-llxFooter('$Date: 2006/06/12 12:48:43 $ - $Revision: 1.43 $');
+llxFooter('$Date: 2006/06/12 12:55:04 $ - $Revision: 1.44 $');
 
 ?>

Index: lib/ldap.lib.php
===================================================================
RCS file: /cvsroot/dolibarr/dolibarr/htdocs/lib/ldap.lib.php,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -b -r1.28 -r1.29
--- lib/ldap.lib.php    12 Jun 2006 12:48:43 -0000      1.28
+++ lib/ldap.lib.php    12 Jun 2006 12:55:04 -0000      1.29
@@ -19,7 +19,7 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  * or see http://www.gnu.org/
  *
- * $Id: ldap.lib.php,v 1.28 2006/06/12 12:48:43 hregis Exp $
+ * $Id: ldap.lib.php,v 1.29 2006/06/12 12:55:04 hregis Exp $
  * $Source: /cvsroot/dolibarr/dolibarr/htdocs/lib/ldap.lib.php,v $
  */
 
@@ -28,7 +28,7 @@
                \brief          Librairie contenant les fonctions pour accèder 
au serveur ldap.
                \author         Rodolphe Quiedeville.
                \author         Benoit Mortier.
-               \version        $Revision: 1.28 $
+               \version        $Revision: 1.29 $
 
                Ensemble des fonctions permettant d'accèder à un serveur LDAP.
 */
@@ -57,13 +57,12 @@
        if ($ldapconnect)
        {
                ldap_set_option($ldapconnect, LDAP_OPT_PROTOCOL_VERSION, 
$conf->global->LDAP_SERVER_PROTOCOLVERSION);
+               return $ldapconnect;
        }
        else
        {
                $this->err .= ldap_error($ldapconnect);
        }
-       
-       return $ldapconnect;
 }
 
 




reply via email to

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