From f869a1bf170c57be93aa9d4e212eb98f4afc8a7e Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 15 Oct 2014 10:45:24 +0200 Subject: [PATCH] Fix that the LdapDiscoveryForm discovers only MSAD hosts refs #7163 --- application/forms/LdapDiscoveryForm.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/forms/LdapDiscoveryForm.php b/application/forms/LdapDiscoveryForm.php index 47b6537af..9cf2468d0 100644 --- a/application/forms/LdapDiscoveryForm.php +++ b/application/forms/LdapDiscoveryForm.php @@ -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; } } \ No newline at end of file