This repository contains source code for my website that helps to generate correct LXC.idmap commands for your LXC containers.
Max value of gid is set to 65534. If you need more, you're probably pro enough to figure it out on your own!