- A lot of small bugfixes done on this version
This commit is contained in:
1 parent
b681f245c0
commit
4d20cd50cc
10 files changed
+189
-33
No files matched your search
+14
-3
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Ulmus\Ldap\Adapter;
|
||||
|
||||
use Ulmus\{Common\PdoObject, Exception\AdapterConfigurationException, Ldap\Entity\User};
|
||||
use Ulmus\{Common\PdoObject, Exception\AdapterConfigurationException, Ldap\Entity\User, Ulmus};
|
||||
|
||||
use Ulmus\Ldap\Common\LdapObject;
|
||||
|
||||
@@ -37,14 +37,14 @@ class Ldap implements \Ulmus\Adapter\AdapterInterface {
|
||||
public LdapObject $ldapObject;
|
||||
|
||||
public function __construct(
|
||||
? string $host = null,
|
||||
? string/*|array*/ $host = null,
|
||||
? string $baseDn = null,
|
||||
? string $username = null,
|
||||
? string $password = null,
|
||||
? string $accountSuffix = null
|
||||
) {
|
||||
if ($host) {
|
||||
$this->hosts = [ $host ];
|
||||
$this->hosts = is_array($host) ? $host : [ $host ];
|
||||
}
|
||||
|
||||
if ($baseDn) {
|
||||
@@ -146,6 +146,17 @@ class Ldap implements \Ulmus\Adapter\AdapterInterface {
|
||||
ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public function writableValue(/* mixed */ $value) /*: mixed*/
|
||||
{
|
||||
switch (true) {
|
||||
case is_object($value):
|
||||
return Ulmus::convertObject($value);
|
||||
}
|
||||
|
||||
return $value;
|
||||
}
|
||||
|
||||
public function escapeIdentifier(string $segment, int $type, string $ignore = "") : string
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user