parent
45e179d939
commit
f869a1bf17
|
@ -167,7 +167,7 @@ class LdapDiscoveryForm extends Form
|
||||||
if (! isset($this->capabilities)) {
|
if (! isset($this->capabilities)) {
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
if (isset($this->capabilities->msCapabilities->ActiveDirectoryOid)) {
|
if ($this->capabilities->msCapabilities->ActiveDirectoryOid) {
|
||||||
return array(
|
return array(
|
||||||
'hostname' => $this->domain,
|
'hostname' => $this->domain,
|
||||||
'port' => $this->port,
|
'port' => $this->port,
|
||||||
|
@ -192,7 +192,7 @@ class LdapDiscoveryForm extends Form
|
||||||
if (! isset($this->capabilities)) {
|
if (! isset($this->capabilities)) {
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
if (isset($this->capabilities->msCapabilities->ActiveDirectoryOid)) {
|
if ($this->capabilities->msCapabilities->ActiveDirectoryOid) {
|
||||||
return array(
|
return array(
|
||||||
'base_dn' => $this->namingContext,
|
'base_dn' => $this->namingContext,
|
||||||
'user_class' => 'user',
|
'user_class' => 'user',
|
||||||
|
@ -209,6 +209,6 @@ class LdapDiscoveryForm extends Form
|
||||||
|
|
||||||
public function isAd()
|
public function isAd()
|
||||||
{
|
{
|
||||||
return isset($this->capabilities->msCapabilities->ActiveDirectoryOid);
|
return $this->capabilities->msCapabilities->ActiveDirectoryOid;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue