Fix that the LdapDiscoveryForm discovers only MSAD hosts

refs #7163
This commit is contained in:
Johannes Meyer 2014-10-15 10:45:24 +02:00
parent 45e179d939
commit f869a1bf17
1 changed files with 3 additions and 3 deletions

View File

@ -167,7 +167,7 @@ class LdapDiscoveryForm extends Form
if (! isset($this->capabilities)) {
return array();
}
if (isset($this->capabilities->msCapabilities->ActiveDirectoryOid)) {
if ($this->capabilities->msCapabilities->ActiveDirectoryOid) {
return array(
'hostname' => $this->domain,
'port' => $this->port,
@ -192,7 +192,7 @@ class LdapDiscoveryForm extends Form
if (! isset($this->capabilities)) {
return array();
}
if (isset($this->capabilities->msCapabilities->ActiveDirectoryOid)) {
if ($this->capabilities->msCapabilities->ActiveDirectoryOid) {
return array(
'base_dn' => $this->namingContext,
'user_class' => 'user',
@ -209,6 +209,6 @@ class LdapDiscoveryForm extends Form
public function isAd()
{
return isset($this->capabilities->msCapabilities->ActiveDirectoryOid);
return $this->capabilities->msCapabilities->ActiveDirectoryOid;
}
}