rest: remove unused resolve_dn method