[SSSD] [PATCH 1/2] libsss_idmap: function to calculate range