Fixed shibboleth redirect bug. Fixed permissions and user lookup errors
merged changed