def ats_url(base_url):
    """
    Return the URL for the ESGF SAML AttributeService
    """
    # Strip '/' from url as necessary
    base_url = base_url.rstrip('/')
    return '/'.join([base_url,
                    'esgf-idp/saml/soap/secure/attributeService.htm'])