- Matching changes made on Ulmus
This commit is contained in:
1 parent
719eef4e33
commit
520b9fe8f4
3 files changed
+23
-3
No files matched your search
+21
-1
@@ -2,7 +2,12 @@
|
||||
|
||||
namespace Ulmus\Ldap\Adapter;
|
||||
|
||||
use Ulmus\{Common\PdoObject, Exception\AdapterConfigurationException, Ldap\Entity\User, Ulmus};
|
||||
use Ulmus\{Adapter\AdapterInterface,
|
||||
Common\PdoObject,
|
||||
Exception\AdapterConfigurationException,
|
||||
Ldap\Entity\User,
|
||||
Migration\FieldDefinition,
|
||||
Ulmus};
|
||||
|
||||
use Ulmus\Ldap\Common\LdapObject;
|
||||
|
||||
@@ -10,6 +15,10 @@ use function ldap_set_option, ldap_start_tls, ldap_bind, ldap_unbind, ldap_conne
|
||||
|
||||
class Ldap implements \Ulmus\Adapter\AdapterInterface {
|
||||
|
||||
const ALLOWED_ATTRIBUTES = [
|
||||
''
|
||||
];
|
||||
|
||||
public const IDENTIFIER_DN = 101;
|
||||
|
||||
public const IDENTIFIER_FILTER = 102;
|
||||
@@ -199,4 +208,15 @@ class Ldap implements \Ulmus\Adapter\AdapterInterface {
|
||||
return $this->baseDn;
|
||||
}
|
||||
|
||||
public function whitelistAttributes(array &$parameters) : void
|
||||
{
|
||||
$parameters = array_intersect_key($parameters, array_flip(static::ALLOWED_ATTRIBUTES));
|
||||
}
|
||||
|
||||
public function generateAlterColumn(FieldDefinition $definition, array $field) : string|\Stringable
|
||||
{
|
||||
return implode(" ", [
|
||||
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user