Fixed by: - Canonicalizing value of attrs1 as DN, if it is search base or root of it. - Escaping it as attributevalue in DN otherwise.