<gh_stars>0
from app import _ldap

def resolve_name(uid: str) -> str:
    try:
        member = _ldap.get_member(uid, uid=True)
        return member.displayname
    except:
        return uid


from app import _ldap

def resolve_name(uid: str) -> str:
    try:
        member = _ldap.get_member(uid, uid=True)
        return member.displayname
    except:
        return uid