in my case, i actually dont mind just logging anonymous all the time, but my applications need users to login via LDAP through apache basic auth. i was able to get user to log in though apache basic auth and my maps logging in anonymously (through php script) and that was working for a bit, then for some reason, after a few page loads, it doesn't work anymore, i keep getting permission denied on my maps. i think they are interfering with each other!
if you do find something, please post it. I will do the same.