/** * Constructor * * @param string $enctype Type of encoding * @param boolean $read_only Readonly? * @return void */ public function __construct($enctype = 'none', $read_only = false) { global $PMF_LDAP; parent::__construct($enctype, $read_only); $this->ldap = new PMF_Ldap($PMF_LDAP['ldap_server'], $PMF_LDAP['ldap_port'], $PMF_LDAP['ldap_base'], $PMF_LDAP['ldap_user'], $PMF_LDAP['ldap_password']); if ($this->ldap->error) { $this->errors[] = $this->ldap->error; } }
/** * Constructor * * @param PMF_Configuration $config * * @return PMF_Auth_Ldap */ public function __construct(PMF_Configuration $config) { $this->_config = $config; $this->_ldapConfig = $this->_config->getLdapConfig(); $this->multipleServers = $this->_ldapConfig['ldap_use_multiple_servers']; parent::__construct($this->_config); $this->ldap = new PMF_Ldap($this->_config); $this->ldap->connect($this->_ldapConfig['ldap_server'], $this->_ldapConfig['ldap_port'], $this->_ldapConfig['ldap_base'], $this->_ldapConfig['ldap_user'], $this->_ldapConfig['ldap_password']); if ($this->ldap->error) { $this->errors[] = $this->ldap->error; } }
/** * Constructor * * @param string $enctype Type of encoding * @param boolean $read_only Readonly? * @return void */ function __construct($enctype = 'none', $read_only = false) { parent::__construct($enctype, $read_only); $this->db = PMF_Db::getInstance(); }
/** * Constructor * * @param PMF_Configuration $config * * @return PMF_Auth_Db */ function __construct(PMF_Configuration $config) { parent::__construct($config); $this->db = $this->_config->getDb(); }