protected function getUserUsername()
    {
        $attribute = Resolver::getLdapDiscoveryAttribute();

        $username = $this->user->getFirstAttribute($attribute);

        if (trim($username) == false) {
            throw new UnexpectedValueException(
                "Unable to locate a user without a {$attribute}"
            );
        }

        return $username;
    }
protected function getUserUsername()
    {
        $attribute = Resolver::getLdapDiscoveryAttribute();

        $username = $this->user->getFirstAttribute($attribute);

        if (trim($username) == false) {
            throw new UnexpectedValueException(
                "Unable to locate a user without a {$attribute}"
            );
        }

        return $username;
    }
protected function getUserUsername ( ) { $ attribute = Resolver :: getLdapDiscoveryAttribute ( ) ; $ username = $ this -> user -> getFirstAttribute ( $ attribute ) ; if ( trim ( $ username ) == false ) { throw new UnexpectedValueException ( "Unable to locate a user without a {$attribute}" ) ; } return $ username ; }
Returns the LDAP users configured username.

@return string

@throws UnexpectedValueException
Returns the LDAP users configured username .