'Remote identity is used for certain SASL mechanisms
(currently -- PLAIN) to inform server about the ID
we want to authorize as instead of our login name.'

def get_remote_identity(self):

    identity = self.getconf('remote_identity', default=None)
    if (identity != None):
        identity = identity.encode('UTF-8')
    return identity
