def parse_email(ldap_entry):
    """
    Returns the user's email address from an ldapentry
    """
    if "mail" in ldap_entry:
        email = ldap_entry['mail'][0]
    else:
        email = ldap_entry['uid'][0] + "@pdx.edu"

    return email