protected function SimpleLdapUserManager::cleanName in Simple LDAP 8
Make the name safe for LDAP searches.
Parameters
$name:
Return value
string
1 call to SimpleLdapUserManager::cleanName()
- SimpleLdapUserManager::getLdapUser in modules/
simple_ldap_user/ src/ SimpleLdapUserManager.php - Checks if a user exists on the LDAP server with a certain name.
File
- modules/
simple_ldap_user/ src/ SimpleLdapUserManager.php, line 222
Class
- SimpleLdapUserManager
- Manages the loading and syncing of data between LDAP server and Drupal.
Namespace
Drupal\simple_ldap_userCode
protected function cleanName($name) {
return preg_replace(array(
'/\\(/',
'/\\)/',
), array(
'\\\\(',
'\\\\)',
), $name);
}