def METHOD_NAME(self, dn, password):
    """Get a connection from the server."""
    conn = ldap.initialize(self.server_uri)
    conn.set_option(ldap.OPT_X_TLS_DEMAND, True)
    conn.set_option(ldap.OPT_DEBUG_LEVEL, 255)
    conn.simple_bind_s(
        force_str(dn), force_str(password)
    )
    return conn