mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
LdapCapabilities: Log which attributes were discovered
This commit is contained in:
parent
3c69a63ce3
commit
d8e3f23342
@ -3,6 +3,8 @@
|
|||||||
|
|
||||||
namespace Icinga\Protocol\Ldap;
|
namespace Icinga\Protocol\Ldap;
|
||||||
|
|
||||||
|
use Icinga\Application\Logger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The properties and capabilities of an LDAP server
|
* The properties and capabilities of an LDAP server
|
||||||
*
|
*
|
||||||
@ -347,6 +349,17 @@ class LdapCapabilities
|
|||||||
|
|
||||||
$cap = new LdapCapabilities($connection->cleanupAttributes(ldap_get_attributes($ds, $entry), $fields));
|
$cap = new LdapCapabilities($connection->cleanupAttributes(ldap_get_attributes($ds, $entry), $fields));
|
||||||
$cap->discoverAdConfigOptions($connection);
|
$cap->discoverAdConfigOptions($connection);
|
||||||
|
|
||||||
|
if (isset($cap->attributes) && Logger::getInstance()->getLevel() === Logger::DEBUG) {
|
||||||
|
Logger::debug('Capability query discovered the following attributes:');
|
||||||
|
foreach ($cap->attributes as $name => $value) {
|
||||||
|
if ($value !== null) {
|
||||||
|
Logger::debug(' %s = %s', $name, $value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Logger::debug('Capability query attribute listing ended.');
|
||||||
|
}
|
||||||
|
|
||||||
return $cap;
|
return $cap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user