def get_ldap_members(group):
    """
    Get group members from raw LDAP group information

    Args:
        group (dict): LDAP group info

    Returns:
        list: uids
    """
    if 'member' in group:
        members = group['member']
        if not isinstance(members, list):
            members = [members]
        users = [m.split(',', 1)[0].split('=', 1)[-1] for m in members if m != 'cn=empty-membership-placeholder']
    elif 'memberUid' not in group:
        users = []
    elif isinstance(group['memberUid'], list):
        users = group['memberUid']
    else:
        users = [group['memberUid']]
    return users