def saml_assertion_to_ldap_style_name(assertion_attributes):
    """
    Return string, approximating a NOAA LDAP-style name for SAML user

    Keyword Parameters:
    assertion_attributes  -- Dict, representing SAML assertion
      attributes for a logged in user

    >>> test_attributes = {'mail': ['Pat.Ng@noaa.gov']}
    >>> saml_assertion_to_ldap_style_name(test_attributes)
    'uid=pat.ng,ou=People,o=noaa.gov'
    """
    # Adapt SAML user email assertion, into a LDAP-style name
    user_name, user_domain = assertion_attributes['mail'].pop().split('@')
    generated_ldap_id = 'uid={},ou=People,o={}'.format(user_name.lower(), user_domain)
    return generated_ldap_id