Fix parameter name and error message.
authorJan Schneider <jan@horde.org>
Mon, 13 Sep 2010 13:28:01 +0000 (15:28 +0200)
committerJan Schneider <jan@horde.org>
Mon, 13 Sep 2010 13:35:11 +0000 (15:35 +0200)
framework/Group/lib/Horde/Group/Ldap.php

index 0d6bdd5..354ce95 100644 (file)
@@ -94,7 +94,7 @@ class Horde_Group_Ldap extends Horde_Group
 
         if (isset($this->_params['binddn'])) {
             $bind = @ldap_bind($this->_ds, $this->_params['binddn'],
-                               $this->_params['password']);
+                               $this->_params['bindpw']);
         } else {
             $bind = @ldap_bind($this->_ds);
         }
@@ -554,7 +554,7 @@ class Horde_Group_Ldap extends Horde_Group
 
             $search = @ldap_search($this->_ds, $this->_params['basedn'], $this->_filter, array($this->_params['gid']));
             if (!$search) {
-                throw new Horde_Group_Exception('Could not reach the LDAP server');
+                throw new Horde_Group_Exception('Could not search the LDAP server');
             }
 
             @ldap_sort($this->_ds, $search, $this->_params['gid']);