original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: Loads a user from an LDAP entry.
  
  @param string $username
  @param Entry  $entry
  
  @return User
docstring_tokens: Loads a user from an LDAP entry .