'Returns a set of types contained in an RDN
:param rdn:
A RelativeDistinguishedName object
:return:
A set object with unicode strings of NameTypeAndValue type field
values'

def _get_types(self, rdn):

    return set([ntv[u'type'].native for ntv in rdn])
