'True if the target attribute has the given value.'

def _is_value_present(self, value):

    try:
        is_present = bool(self.connection.compare_s(self.dn, self.name, value))
    except ldap.NO_SUCH_ATTRIBUTE:
        is_present = False
    return is_present
