Authenticate to a server using SASL plain, or does so on connection.

        Args:
            name (str): Name to auth with.
            password (str): Password to auth with.
            identity (str): Identity to auth with (defaults to name).

def sasl_plain(self, name, password, identity=None):
        """Authenticate to a server using SASL plain, or does so on connection.

        Args:
            name (str): Name to auth with.
            password (str): Password to auth with.
            identity (str): Identity to auth with (defaults to name).
        """
        if identity is None:
            identity = name

        self.sasl('plain', name, password, identity)