There are a lot of National Forest and State Forests in the area between Idaho Falls and Northern Montana. I don't have a favorite, but most should have some space for boondocking.
One thing to keep in mind is that Glacier is booked pretty tight in the park. Hopefully, you have reservations. Camping a outside the park with a short drive would be easier. Don't underestimate the number of Grizzlies in the area and read up on what that means.
I don't know if you've thought about how to get around in Glacier, but one of the most popular roads is closed to vehicles like RVs. Your option is to take the shuttle, or pickup a rental in Kalispell or Missoula. I'm sure there have been other more detailed discussions about Glacier, so I'd search here including archives for details.
'10 Ford F-450, 6.4, 4.30, 4x4, 14,500 GVWR, '06 Host Rainer 950 DS, Torklift Talon tiedowns, Glow Steps, and Fastguns. Bilstein 4600s, Firestone Bags, Toyo M655 Gs, Curt front hitch, Energy Suspension bump stops.
NRA Life Member, CCA Life Member