protected function LdapBaseManager::applyModificationsToEntry in Lightweight Directory Access Protocol (LDAP) 8.4
Apply modifications to entry.
Parameters
\Symfony\Component\Ldap\Entry $entry: Entry.
\Symfony\Component\Ldap\Entry $current: Current.
1 call to LdapBaseManager::applyModificationsToEntry()
- LdapUserManager::applyModificationsToEntry in ldap_servers/
src/ LdapUserManager.php - Apply modifications to entry.
1 method overrides LdapBaseManager::applyModificationsToEntry()
- LdapUserManager::applyModificationsToEntry in ldap_servers/
src/ LdapUserManager.php - Apply modifications to entry.
File
- ldap_servers/
src/ LdapBaseManager.php, line 345
Class
- LdapBaseManager
- LDAP Base Manager.
Namespace
Drupal\ldap_serversCode
protected function applyModificationsToEntry(Entry $entry, Entry $current) : void {
// @todo Make sure the empty attributes sent are actually an array.
// @todo Make sure that count et al are gone.
foreach ($entry
->getAttributes() as $new_key => $new_value) {
if ($current
->getAttribute($new_key, FALSE) == $new_value) {
$entry
->removeAttribute($new_key);
}
}
}