def METHOD_NAME(dn):
    dns = []
    for rd in dnutils.parse_dn(dn):
        if rd[0] == 'o' and rd[1] == 'gluu':
            continue
        dns.append(rd[1])
    dns.reverse()
    key = '_'.join(dns)
    if not key:
        key = '_'
    return key