private $_ldap;
/**
+ * The configuration for connection to the LDAP server.
+ *
+ * @var array
+ */
+ private $_config;
+
+ /**
* Base DN of the LDAP server.
*
* @var string
$config['binddn'] = $config['uid'];
$config['bindpw'] = $config['pass'];
+ $this->_config = $config;
+
$this->connect();
parent::__construct($params);
*/
protected function connect()
{
- $this->_ldap = Net_LDAP2::connect($config);
+ $this->_ldap = Net_LDAP2::connect($this->_config);
if (is_a($this->_ldap, 'PEAR_Error')) {
throw new Horde_Kolab_Server_Exception($this->_ldap);
}