protected function loadUser($username, Entry $entry)
    {
        $password = null;

        if (null !== $this->passwordAttribute) {
            $password = $this->getAttributeValue($entry, $this->passwordAttribute);
        }

        return new User($username, $password, $this->defaultRoles);
    }
protected function loadUser($username, Entry $entry)
    {
        $password = null;

        if (null !== $this->passwordAttribute) {
            $password = $this->getAttributeValue($entry, $this->passwordAttribute);
        }

        return new User($username, $password, $this->defaultRoles);
    }
protected function loadUser ( $ username , Entry $ entry ) { $ password = null ; if ( null !== $ this -> passwordAttribute ) { $ password = $ this -> getAttributeValue ( $ entry , $ this -> passwordAttribute ) ; } return new User ( $ username , $ password , $ this -> defaultRoles ) ; }
Loads a user from an LDAP entry.

@param string $username
@param Entry  $entry

@return User
Loads a user from an LDAP entry .