- Added the update keyword allowing modification for one field.

This commit is contained in:
mcndave committed 2021-03-24 13:48:28 +00:00
1 parent fa806e8e0d
commit 1b11917bf5
9 files changed
+186 -21

No files matched your search

+11 -5
View File
@@ -17,6 +17,8 @@ class Ldap implements \Ulmus\Adapter\AdapterInterface {
public int $version = 3;
public bool $encrypt;
public bool $forceSSL = false;
public array $hosts;
@@ -106,7 +108,10 @@ class Ldap implements \Ulmus\Adapter\AdapterInterface {
$ldapObject->startTLS();
}
elseif ($this->forceSSL) {
$ldapObject->startTLS();
}
return $ldapObject;
}
@@ -135,12 +140,13 @@ class Ldap implements \Ulmus\Adapter\AdapterInterface {
throw new AdapterConfigurationException("Your `account_suffix` is missing from your configuration array");
}
/*
if ( false !== ( $configuration['app'] ?? false ) ) {
$this->app = $configuration['app'];
if ( false !== ( $configuration['force_ssl'] ?? false ) ) {
$this->forceSSL = true;
}
*/
if ( getenv('DEBUG') ) {
ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7);
}
}
public function escapeIdentifier(string $segment, int $type, string $ignore = "") : string