Ejemplo n.º 1
0
 public function __construct($host = null, $port = 389, $version = 3, $useSsl = false, $useStartTls = false, $optReferrals = false, LdapInterface $ldap = null)
 {
     $config = array('host' => $host, 'port' => $port, 'version' => $version, 'useSsl' => (bool) $useSsl, 'useStartTls' => (bool) $useStartTls, 'optReferrals' => (bool) $optReferrals);
     $this->ldap = null !== $ldap ? $ldap : Ldap::create('ext_ldap', $config);
 }
Ejemplo n.º 2
0
 public function __construct($host = null, $port = 389, $version = 3, $useSsl = false, $useStartTls = false, $optReferrals = false, LdapInterface $ldap = null)
 {
     $config = $this->normalizeConfig($host, $port, $version, $useSsl, $useStartTls, $optReferrals);
     $this->ldap = null !== $ldap ? $ldap : Ldap::create('ext_ldap', $config);
 }