src/LdapTools/Resolver/AttributeNameResolver.php
protected function addDnFromLdapIfNotPresent(array $newEntry, array $entry)
    {
        if (!isset($newEntry['dn']) && isset($entry['dn'])) {
            $newEntry['dn'] = $entry['dn'];
        }

        return $newEntry;
    }
protected function addDnFromLdapIfNotPresent(array $newEntry, array $entry)
    {
        if (!isset($newEntry['dn']) && isset($entry['dn'])) {
            $newEntry['dn'] = $entry['dn'];
        }

        return $newEntry;
    }
protected function addDnFromLdapIfNotPresent ( array $ newEntry , array $ entry ) { if ( ! isset ( $ newEntry [ 'dn' ] ) && isset ( $ entry [ 'dn' ] ) ) { $ newEntry [ 'dn' ] = $ entry [ 'dn' ] ; } return $ newEntry ; }
The DN attribute is returned by PHP on all LDAP search operations, regardless of selected attributes, and is used
in many functions. So add it to the results even if it wasn't selected for.

@param array $newEntry
@param array $entry
@return array
The DN attribute is returned by PHP on all LDAP search operations regardless of selected attributes and is used in many functions . So add it to the results even if it wasn t selected for .