Obviously, the sun should be at enough of an angle so it won't cause glare. You can try to position it so the sky isn't reflecting in the photo, but honestly the effect of that is going to be miniscule because the sun is so much brighter.
And of course, if you have to do it when the sun isn't out, you can make do with whatever lighting you have, but the quality won't be as good from my experience. I've done this for family photos from ages ago, and it wasn't a problem to wait for some sunshine.