You are here

public function Server::dnArrayToLowerCase in Lightweight Directory Access Protocol (LDAP) 8.3

Convert DN array to lowercase.

Parameters

array $dns: Mixed Case.

Return value

array Lower Case.

1 call to Server::dnArrayToLowerCase()
Server::groupIsMember in ldap_servers/src/Entity/Server.php
Is a user a member of group?

File

ldap_servers/src/Entity/Server.php, line 977

Class

Server
Defines the Server entity.

Namespace

Drupal\ldap_servers\Entity

Code

public function dnArrayToLowerCase(array $dns) {
  return array_keys(array_change_key_case(array_flip($dns), CASE_LOWER));
}